try making it dependent
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/release Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/tag/lint Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/release Pipeline failed

This commit is contained in:
FloatingGhost 2022-06-11 19:10:45 +01:00
parent 7bb6317e38
commit 0e6f47955d

View file

@ -55,19 +55,14 @@ pipeline:
MIX_ENV: prod MIX_ENV: prod
commands: commands:
- apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 - rm -rf release || true
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli - rm -rf _build || true
- chmod +x scaleway-cli - rm -rf /root/.mix
- ./scaleway-cli object config install type=rclone
- echo "import Mix.Config" > config/prod.secret.exs
- mix local.hex --force - mix local.hex --force
- mix local.rebar --force - mix local.rebar --force
- mix deps.clean --all - mix deps.clean --all
- mix deps.get --only prod - mix deps.get --only prod
- mkdir release
- export PLEROMA_BUILD_BRANCH=develop
- rm -rf release || true
- rm -rf _build || true
- mix release --path release - mix release --path release
- export PLEROMA_BUILD_BRANCH=develop
- 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}-musl.zip - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$CI_COMMIT_BRANCH/akkoma-${tag}-musl.zip