29 - SCW_DEFAULT_ORGANIZATION_ID
30 image: ${docker_prefix}elixir:1.13
34 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev
35 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
36 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
37 - chmod +x scaleway-cli
38 - ./scaleway-cli object config install type=rclone
39 - echo "import Mix.Config" > config/prod.secret.exs
40 - mix local.hex --force
41 - mix local.rebar --force
42 - export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}
43 - export PLEROMA_BUILD_BRANCH=$BUILD_TAG
44 - mix deps.clean --all
45 - mix deps.get --only prod
47 - mix release --path release
48 - zip akkoma-${tag}.zip -r release
49 - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}.zip
64 - SCW_DEFAULT_ORGANIZATION_ID
65 image: ${docker_prefix}elixir:1.13-alpine
69 - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick
70 - rm -rf release || true
71 - rm -rf _build || true
73 - rm scaleway-cli || true
74 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
75 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
76 - chmod +x scaleway-cli
77 - ./scaleway-cli object config install type=rclone
79 - mix local.hex --force
80 - mix local.rebar --force
81 - export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}
82 - export PLEROMA_BUILD_BRANCH=$BUILD_TAG
83 - mix deps.clean --all
84 - mix deps.get --only prod
85 - mix release --path release
86 - zip akkoma-${tag}.zip -r release
87 - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}-musl.zip
102 - SCW_DEFAULT_ORGANIZATION_ID
103 image: voidlinux/voidlinux-musl
107 - xbps-install -Suy || xbps-install -uy xbps
109 - xbps-install -y git gcc musl-devel make cmake file-devel rclone wget zip libmagic elixir
110 - rm -rf release || true
111 - rm -rf _build || true
113 - rm scaleway-cli || true
114 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
115 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
116 - chmod +x scaleway-cli
117 - ./scaleway-cli object config install type=rclone
119 - mix local.hex --force
120 - mix local.rebar --force
121 - export BUILD_TAG=$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}
122 - export PLEROMA_BUILD_BRANCH=$BUILD_TAG
123 - mix deps.clean --all
124 - mix deps.get --only prod
125 - mix release --path release
126 - zip akkoma-${tag}.zip -r release
127 - rclone copyto akkoma-${tag}.zip scaleway:akkoma-updates/$BUILD_TAG/akkoma-${tag}-musl11.zip