archive historical stable builds #76

Merged
floatingghost merged 10 commits from historial-builds into develop 2022-07-15 13:52:01 +00:00
Showing only changes of commit 10c80ab7a4 - Show all commits

View file

@ -17,6 +17,8 @@ pipeline:
when: when:
event: event:
- tag - tag
branch:
- refs/tags/test-*
secrets: secrets:
- SCW_ACCESS_KEY - SCW_ACCESS_KEY
- SCW_SECRET_KEY - SCW_SECRET_KEY
@ -25,9 +27,6 @@ pipeline:
environment: environment:
MIX_ENV: prod MIX_ENV: prod
commands: commands:
- echo $CI_COMMIT_BRANCH
- echo $CI_COMMIT_TAG
- rm ~/nope
- apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
@ -36,13 +35,14 @@ pipeline:
- echo "import Mix.Config" > config/prod.secret.exs - echo "import Mix.Config" > config/prod.secret.exs
- mix local.hex --force - mix local.hex --force
- mix local.rebar --force - mix local.rebar --force
- export PLEROMA_BUILD_BRANCH=$CI_COMMIT_BRANCH - export BUILD_TAG=${$CI_COMMIT_TAG:-$CI_COMMIT_BRANCH}
- export PLEROMA_BUILD_BRANCH=$BUILD_TAG
- mix deps.clean --all - mix deps.clean --all
- mix deps.get --only prod - mix deps.get --only prod
- mkdir release - mkdir release
- mix release --path release - mix release --path release
- zip akkoma-${tag}.zip -r release - zip akkoma-${tag}.zip -r release
- rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$CI_COMMIT_BRANCH/akkoma-${tag}.zip - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}.zip
musl: musl:
when: when: