12 platform: linux/${platform}
21 - apt-get update && apt-get install -y cmake libmagic-dev rclone
22 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
23 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
24 - chmod +x scaleway-cli
25 - ./scaleway-cli object config install type=rclone
26 - echo "import Mix.Config" > config/prod.secret.exs
27 - mix deps.get --only prod
29 - export PLEROMA_BUILD_BRANCH=$CI_COMMIT_BRANCH
30 - mix release --path release
31 - zip akkoma-$CI_COMMIT_BRANCH-${platform}.zip -r release
32 - rclone copy akkoma-$CI_COMMIT_BRANCH-${platform}.zip scaleway:akkoma-updates/
36 image: elixir:1.13-alpine
40 - apk add git gcc g++ musl-dev make cmake file-dev rclone wget
41 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
42 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
43 - chmod +x scaleway-cli
44 - ./scaleway-cli object config install type=rclone
45 - echo "import Mix.Config" > config/prod.secret.exs
46 - mix deps.get --only prod
48 - export PLEROMA_BUILD_BRANCH=${CI_COMMIT_BRANCH}
49 - mix release --path release
50 - zip akkoma-$CI_COMMIT_BRANCH-${platform}.zip -r release
51 - rclone copy akkoma-$CI_COMMIT_BRANCH-${platform}.zip scaleway:akkoma-updates/