X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=.woodpecker%2F.release.yml;h=c411dd2e998b711aa166102934299d642925e4c6;hb=99ced95d3bf4b49246e6946568cdd31b4173a25f;hp=5efef118f469b0365803f2b9b21c7688ae881efb;hpb=a59fe8ba2d0f7e9cfd4e160c886116e7775d186b;p=akkoma diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 5efef118f..c411dd2e9 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -17,8 +17,12 @@ pipeline: when: event: - push + - tag branch: - develop + - stable + - refs/tags/v* + - refs/tags/stable-* secrets: - SCW_ACCESS_KEY - SCW_SECRET_KEY @@ -35,25 +39,29 @@ pipeline: - echo "import Mix.Config" > config/prod.secret.exs - mix local.hex --force - mix local.rebar --force + - export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"} + - export PLEROMA_BUILD_BRANCH=$BUILD_TAG - mix deps.clean --all - mix deps.get --only prod - mkdir release - - export PLEROMA_BUILD_BRANCH=develop - mix release --path release - zip akkoma-${tag}.zip -r release - - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/develop/akkoma-${tag}.zip + - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}.zip musl: when: event: - push + - tag branch: - develop + - stable + - refs/tags/v* + - refs/tags/stable-* secrets: - SCW_ACCESS_KEY - SCW_SECRET_KEY - SCW_DEFAULT_ORGANIZATION_ID - group: release image: ${docker_prefix}elixir:1.13-alpine environment: MIX_ENV: prod @@ -70,24 +78,28 @@ pipeline: - mix local.hex --force - mix local.rebar --force + - export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"} + - export PLEROMA_BUILD_BRANCH=$BUILD_TAG - mix deps.clean --all - mix deps.get --only prod - mix release --path release - - export PLEROMA_BUILD_BRANCH=develop - zip akkoma-${tag}.zip -r release - - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/develop/akkoma-${tag}-musl.zip + - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}-musl.zip musl1.1: when: event: - push + - tag branch: - develop + - stable + - refs/tags/v* + - refs/tags/stable-* secrets: - SCW_ACCESS_KEY - SCW_SECRET_KEY - SCW_DEFAULT_ORGANIZATION_ID - group: release image: voidlinux/voidlinux-musl environment: MIX_ENV: prod @@ -106,9 +118,10 @@ pipeline: - mix local.hex --force - mix local.rebar --force + - export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"} + - export PLEROMA_BUILD_BRANCH=$BUILD_TAG - mix deps.clean --all - mix deps.get --only prod - mix release --path release - - export PLEROMA_BUILD_BRANCH=develop - zip akkoma-${tag}.zip -r release - - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/develop/akkoma-${tag}-musl11.zip + - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}-musl11.zip