5 - SCW_DEFAULT_ORGANIZATION_ID
6 - &setup-scw-s3 "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 && chmod +x scaleway-cli && ./scaleway-cli object config install type=rclone"
8 - &setup-hex "mix local.hex --force && mix local.rebar --force"
19 - &tag-build 'export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG'
21 - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix) && (rm scaleway-cli || true)"
32 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git
35 - echo "import Mix.Config" > config/prod.secret.exs
38 - mix deps.get --only prod
39 - mix release --path release
40 - zip akkoma-amd64.zip -r release
41 - rclone copyto akkoma-amd64.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-amd64.zip
44 image: elixir:1.13-alpine
50 - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick
54 - mix deps.clean --all
56 - mix deps.get --only prod
57 - mix release --path release
58 - zip akkoma-amd64.zip -r release
59 - rclone copyto akkoma-amd64.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-amd64-musl.zip