From: FloatingGhost Date: Sat, 11 Jun 2022 17:12:48 +0000 (+0100) Subject: run on tag X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0b907ca861c31b89979434d68db9f17c64c5aba3;p=akkoma run on tag --- diff --git a/.woodpecker/.lint.yml b/.woodpecker/.lint.yml index d4f6576a3..0bac90d73 100644 --- a/.woodpecker/.lint.yml +++ b/.woodpecker/.lint.yml @@ -7,4 +7,4 @@ pipeline: - mix format --check-formatted when: event: - - tag + - push diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 82ef6b88a..68a05e99d 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -11,17 +11,12 @@ matrix: include: - tag: amd64 docker_prefix: "" - - tag: arm64 - docker_prefix: arm64v8/ - - tag: arm - docker_prefix: arm32v7/ - pipeline: glibc: when: event: - - push + - tag secrets: - SCW_ACCESS_KEY - SCW_SECRET_KEY @@ -50,7 +45,10 @@ pipeline: when: event: - tag - + secrets: + - SCW_ACCESS_KEY + - SCW_SECRET_KEY + - SCW_DEFAULT_ORGANIZATION_ID group: release image: ${docker_prefix}elixir:1.13-alpine environment: @@ -62,6 +60,8 @@ pipeline: - chmod +x scaleway-cli - ./scaleway-cli object config install type=rclone - echo "import Mix.Config" > config/prod.secret.exs + - mix local.hex --force + - mix local.rebar --force - mix deps.get --only prod - mkdir release - export PLEROMA_BUILD_BRANCH=${CI_COMMIT_BRANCH} diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml index e06a4d54e..cef743643 100644 --- a/.woodpecker/.test.yml +++ b/.woodpecker/.test.yml @@ -10,7 +10,7 @@ pipeline: image: pleromaforkci/ci-base:${ELIXIR_VERSION} when: event: - - tag + - push environment: MIX_ENV: test commands: @@ -24,7 +24,7 @@ pipeline: image: pleromaforkci/ci-base:${ELIXIR_VERSION} when: event: - - tag + - push environment: MIX_ENV: test POSTGRES_DB: pleroma_test