5 - SCW_DEFAULT_ORGANIZATION_ID
6 - &setup-hex "mix local.hex --force && mix local.rebar --force"
37 - &tag-build "export BUILD_TAG=$${CI_COMMIT_TAG:-\"$CI_COMMIT_BRANCH\"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG"
39 - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
40 - &mix-clean "mix deps.clean --all && mix clean"
49 POSTGRES_DB: pleroma_test
50 POSTGRES_USER: postgres
51 POSTGRES_PASSWORD: postgres
56 image: akkoma/ci-base:1.14
58 - mix local.hex --force
59 - mix local.rebar --force
60 - mix format --check-formatted
63 image: akkoma/ci-base:1.14
67 POSTGRES_DB: pleroma_test
68 POSTGRES_USER: postgres
69 POSTGRES_PASSWORD: postgres
72 - mix local.hex --force
73 - mix local.rebar --force
78 image: akkoma/ci-base:1.14
82 POSTGRES_DB: pleroma_test
83 POSTGRES_USER: postgres
84 POSTGRES_PASSWORD: postgres
87 - mix local.hex --force
88 - mix local.rebar --force
94 - mix test --preload-modules --exclude erratic --exclude federated --max-cases 4
98 image: hexpm/elixir:1.14.2-erlang-25.1.2-ubuntu-jammy-20220428
102 DEBIAN_FRONTEND: noninteractive
104 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git build-essential g++ wget
106 - echo "import Config" > config/prod.secret.exs
109 - mix deps.get --only prod
110 - mix release --path release
111 - zip akkoma-ubuntu-jammy.zip -r release
114 image: akkoma/releaser
116 secrets: *scw-secrets
118 - export SOURCE=akkoma-ubuntu-jammy.zip
119 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-ubuntu-jammy.zip
120 - /bin/sh /entrypoint.sh
121 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-ubuntu-jammy.zip
122 - /bin/sh /entrypoint.sh
125 image: hexpm/elixir:1.14.2-erlang-25.1.2-debian-bullseye-20221004
129 DEBIAN_FRONTEND: noninteractive
131 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git build-essential gcc make g++ wget
133 - echo "import Config" > config/prod.secret.exs
137 - mix deps.get --only prod
138 - mix release --path release
139 - zip akkoma-amd64.zip -r release
142 image: akkoma/releaser
144 secrets: *scw-secrets
146 - export SOURCE=akkoma-amd64.zip
147 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64.zip
148 - /bin/sh /entrypoint.sh
149 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-debian-stable.zip
150 - /bin/sh /entrypoint.sh
152 # Canonical amd64-musl
154 image: hexpm/elixir:1.14.2-erlang-25.1.2-alpine-3.16.2
159 - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick
164 - mix deps.get --only prod
165 - mix release --path release
166 - zip akkoma-amd64-musl.zip -r release
169 image: akkoma/releaser
171 secrets: *scw-secrets
173 - export SOURCE=akkoma-amd64-musl.zip
174 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-musl.zip
175 - /bin/sh /entrypoint.sh
178 <<: *on-point-release
182 - SCW_DEFAULT_ORGANIZATION_ID
185 image: python:3.10-slim
187 - apt-get update && apt-get install -y rclone wget git zip
188 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
189 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
190 - chmod +x scaleway-cli
191 - ./scaleway-cli object config install type=rclone
193 - pip install -r requirements.txt
195 - zip -r docs.zip site/*
197 - rclone copy . scaleway:akkoma-docs/$CI_COMMIT_BRANCH/