archive historical stable builds #76
1 changed files with 5 additions and 5 deletions
|
@ -17,6 +17,8 @@ pipeline:
|
|||
when:
|
||||
event:
|
||||
- tag
|
||||
branch:
|
||||
- refs/tags/test-*
|
||||
secrets:
|
||||
- SCW_ACCESS_KEY
|
||||
- SCW_SECRET_KEY
|
||||
|
@ -25,9 +27,6 @@ pipeline:
|
|||
environment:
|
||||
MIX_ENV: prod
|
||||
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
|
||||
- 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
|
||||
|
@ -36,13 +35,14 @@ pipeline:
|
|||
- echo "import Mix.Config" > config/prod.secret.exs
|
||||
- mix local.hex --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.get --only prod
|
||||
- mkdir release
|
||||
- mix release --path 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:
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue