5 - SCW_DEFAULT_ORGANIZATION_ID
6 - &setup-hex "mix local.hex --force && mix local.rebar --force"
29 - &tag-build "export BUILD_TAG=$${CI_COMMIT_TAG:-\"$CI_COMMIT_BRANCH\"} && export PLEROMA_BUILD_BRANCH=$BUILD_TAG"
31 - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
32 - &mix-clean "mix deps.clean --all && mix clean"
41 POSTGRES_DB: pleroma_test
42 POSTGRES_USER: postgres
43 POSTGRES_PASSWORD: postgres
48 image: akkoma/ci-base:latest
50 - mix local.hex --force
51 - mix local.rebar --force
52 - mix format --check-formatted
55 image: akkoma/ci-base:latest
59 POSTGRES_DB: pleroma_test
60 POSTGRES_USER: postgres
61 POSTGRES_PASSWORD: postgres
64 - mix local.hex --force
65 - mix local.rebar --force
70 image: akkoma/ci-base:latest
74 POSTGRES_DB: pleroma_test
75 POSTGRES_USER: postgres
76 POSTGRES_PASSWORD: postgres
79 - mix local.hex --force
80 - mix local.rebar --force
86 - mix test --preload-modules --exclude erratic --exclude federated --max-cases 4
90 image: hexpm/elixir:1.13.4-erlang-25.0.2-ubuntu-jammy-20220428
94 DEBIAN_FRONTEND: noninteractive
96 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git build-essential g++ wget
98 - echo "import Config" > config/prod.secret.exs
101 - mix deps.get --only prod
102 - mix release --path release
103 - zip akkoma-ubuntu-jammy.zip -r release
106 image: akkoma/releaser
108 secrets: *scw-secrets
110 - export SOURCE=akkoma-ubuntu-jammy.zip
111 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-ubuntu-jammy.zip
112 - /bin/sh /entrypoint.sh
119 DEBIAN_FRONTEND: noninteractive
121 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git build-essential gcc make g++ wget
123 - echo "import Config" > config/prod.secret.exs
127 - mix deps.get --only prod
128 - mix release --path release
129 - zip akkoma-amd64.zip -r release
132 image: akkoma/releaser
134 secrets: *scw-secrets
136 - export SOURCE=akkoma-amd64.zip
137 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64.zip
138 - /bin/sh /entrypoint.sh
139 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-debian-stable.zip
140 - /bin/sh /entrypoint.sh
142 # Canonical amd64-musl
144 image: elixir:1.13.4-alpine
149 - apk add git gcc g++ musl-dev make cmake file-dev rclone wget zip imagemagick
154 - mix deps.get --only prod
155 - mix release --path release
156 - zip akkoma-amd64-musl.zip -r release
159 image: akkoma/releaser
161 secrets: *scw-secrets
163 - export SOURCE=akkoma-amd64-musl.zip
164 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-musl.zip
165 - /bin/sh /entrypoint.sh
168 <<: *on-point-release
172 - SCW_DEFAULT_ORGANIZATION_ID
175 image: python:3.10-slim
177 - apt-get update && apt-get install -y rclone wget git zip
178 - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
179 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
180 - chmod +x scaleway-cli
181 - ./scaleway-cli object config install type=rclone
183 - pip install -r requirements.txt
185 - zip -r docs.zip site/*
187 - rclone copy . scaleway:akkoma-docs/$CI_COMMIT_BRANCH/