archive historical stable builds #76
1 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue