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)"
40 POSTGRES_DB: pleroma_test
41 POSTGRES_USER: postgres
42 POSTGRES_PASSWORD: postgres
47 image: akkoma/ci-base:latest
49 - mix local.hex --force
50 - mix local.rebar --force
51 - mix format --check-formatted
54 image: akkoma/ci-base:latest
58 POSTGRES_DB: pleroma_test
59 POSTGRES_USER: postgres
60 POSTGRES_PASSWORD: postgres
63 - mix local.hex --force
64 - mix local.rebar --force
69 image: akkoma/ci-base:latest
73 POSTGRES_DB: pleroma_test
74 POSTGRES_USER: postgres
75 POSTGRES_PASSWORD: postgres
78 - mix local.hex --force
79 - mix local.rebar --force
85 - mix test --preload-modules --exclude erratic --exclude federated --max-cases 4
89 image: hexpm/elixir:1.13.4-erlang-25.0.2-ubuntu-jammy-20220428
93 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-amd64.zip -r release
106 image: akkoma/releaser
108 secrets: *scw-secrets
110 - export SOURCE=akkoma-amd64.zip
111 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64.zip
112 - /bin/sh /entrypoint.sh
114 SOURCE: akkoma-amd64.zip
115 DEST: scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64.zip
122 DEBIAN_FRONTEND: noninteractive
124 - apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git build-essential gcc make g++ wget
126 - echo "import Config" > config/prod.secret.exs
129 - mix deps.get --only prod
130 - mix release --path release
131 - zip akkoma-amd64.zip -r release
134 image: akkoma/releaser
136 secrets: *scw-secrets
138 - export SOURCE=akkoma-amd64.zip
139 - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-debian-bullseye.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
152 - mix deps.clean --all
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/