mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 12:36:11 +00:00
only build ARM AMD64 on develop
This commit is contained in:
parent
eba3cce77b
commit
b63fca2dd7
|
@ -17,8 +17,6 @@ variables:
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
- stable
|
- stable
|
||||||
- refs/tags/v*
|
|
||||||
- refs/tags/stable-*
|
|
||||||
- &on-stable
|
- &on-stable
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -26,7 +24,6 @@ variables:
|
||||||
- tag
|
- tag
|
||||||
branch:
|
branch:
|
||||||
- stable
|
- stable
|
||||||
- refs/tags/stable-*
|
|
||||||
- &on-point-release
|
- &on-point-release
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -104,7 +101,7 @@ pipeline:
|
||||||
# Canonical amd64-musl
|
# Canonical amd64-musl
|
||||||
musl:
|
musl:
|
||||||
image: hexpm/elixir:1.14.3-erlang-25.2.2-alpine-3.18.0
|
image: hexpm/elixir:1.14.3-erlang-25.2.2-alpine-3.18.0
|
||||||
<<: *on-release
|
<<: *on-point-release
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: prod
|
MIX_ENV: prod
|
||||||
commands:
|
commands:
|
||||||
|
@ -119,31 +116,9 @@ pipeline:
|
||||||
|
|
||||||
release-musl:
|
release-musl:
|
||||||
image: akkoma/releaser
|
image: akkoma/releaser
|
||||||
<<: *on-release
|
<<: *on-point-release
|
||||||
secrets: *scw-secrets
|
secrets: *scw-secrets
|
||||||
commands:
|
commands:
|
||||||
- export SOURCE=akkoma-amd64-musl.zip
|
- export SOURCE=akkoma-amd64-musl.zip
|
||||||
- export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-musl.zip
|
- export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-musl.zip
|
||||||
- /bin/sh /entrypoint.sh
|
- /bin/sh /entrypoint.sh
|
||||||
|
|
||||||
docs:
|
|
||||||
<<: *on-point-release
|
|
||||||
secrets:
|
|
||||||
- SCW_ACCESS_KEY
|
|
||||||
- SCW_SECRET_KEY
|
|
||||||
- SCW_DEFAULT_ORGANIZATION_ID
|
|
||||||
environment:
|
|
||||||
CI: "true"
|
|
||||||
image: python:3.10-slim
|
|
||||||
commands:
|
|
||||||
- apt-get update && apt-get install -y rclone wget git zip
|
|
||||||
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
|
|
||||||
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
|
|
||||||
- chmod +x scaleway-cli
|
|
||||||
- ./scaleway-cli object config install type=rclone
|
|
||||||
- cd docs
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- mkdocs build
|
|
||||||
- zip -r docs.zip site/*
|
|
||||||
- cd site
|
|
||||||
- rclone copy . scaleway:akkoma-docs/$CI_COMMIT_BRANCH/
|
|
||||||
|
|
|
@ -15,10 +15,7 @@ variables:
|
||||||
- push
|
- push
|
||||||
- tag
|
- tag
|
||||||
branch:
|
branch:
|
||||||
- develop
|
|
||||||
- stable
|
- stable
|
||||||
- refs/tags/v*
|
|
||||||
- refs/tags/stable-*
|
|
||||||
- &on-stable
|
- &on-stable
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -26,13 +23,11 @@ variables:
|
||||||
- tag
|
- tag
|
||||||
branch:
|
branch:
|
||||||
- stable
|
- stable
|
||||||
- refs/tags/stable-*
|
|
||||||
- &on-point-release
|
- &on-point-release
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- develop
|
|
||||||
- stable
|
- stable
|
||||||
- &on-pr-open
|
- &on-pr-open
|
||||||
when:
|
when:
|
||||||
|
@ -75,7 +70,7 @@ pipeline:
|
||||||
|
|
||||||
debian-bullseye:
|
debian-bullseye:
|
||||||
image: hexpm/elixir:1.14.3-erlang-25.2.2-debian-bullseye-20230109
|
image: hexpm/elixir:1.14.3-erlang-25.2.2-debian-bullseye-20230109
|
||||||
<<: *on-release
|
<<: *on-point-release
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: prod
|
MIX_ENV: prod
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
@ -92,7 +87,7 @@ pipeline:
|
||||||
|
|
||||||
release-debian:
|
release-debian:
|
||||||
image: akkoma/releaser:arm64
|
image: akkoma/releaser:arm64
|
||||||
<<: *on-release
|
<<: *on-point-release
|
||||||
secrets: *scw-secrets
|
secrets: *scw-secrets
|
||||||
commands:
|
commands:
|
||||||
- export SOURCE=akkoma-arm64.zip
|
- export SOURCE=akkoma-arm64.zip
|
||||||
|
@ -104,7 +99,7 @@ pipeline:
|
||||||
# Canonical arm64-musl
|
# Canonical arm64-musl
|
||||||
musl:
|
musl:
|
||||||
image: hexpm/elixir:1.14.3-erlang-25.2.2-alpine-3.18.0
|
image: hexpm/elixir:1.14.3-erlang-25.2.2-alpine-3.18.0
|
||||||
<<: *on-release
|
<<: *on-point-release
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: prod
|
MIX_ENV: prod
|
||||||
commands:
|
commands:
|
||||||
|
@ -119,31 +114,9 @@ pipeline:
|
||||||
|
|
||||||
release-musl:
|
release-musl:
|
||||||
image: akkoma/releaser:arm64
|
image: akkoma/releaser:arm64
|
||||||
<<: *on-release
|
<<: *on-point-release
|
||||||
secrets: *scw-secrets
|
secrets: *scw-secrets
|
||||||
commands:
|
commands:
|
||||||
- export SOURCE=akkoma-arm64-musl.zip
|
- export SOURCE=akkoma-arm64-musl.zip
|
||||||
- export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-arm64-musl.zip
|
- export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-arm64-musl.zip
|
||||||
- /bin/sh /entrypoint.sh
|
- /bin/sh /entrypoint.sh
|
||||||
|
|
||||||
docs:
|
|
||||||
<<: *on-point-release
|
|
||||||
secrets:
|
|
||||||
- SCW_ACCESS_KEY
|
|
||||||
- SCW_SECRET_KEY
|
|
||||||
- SCW_DEFAULT_ORGANIZATION_ID
|
|
||||||
environment:
|
|
||||||
CI: "true"
|
|
||||||
image: python:3.10-slim
|
|
||||||
commands:
|
|
||||||
- apt-get update && apt-get install -y rclone wget git zip
|
|
||||||
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_arm64
|
|
||||||
- mv scaleway-cli_2.5.1_linux_arm64 scaleway-cli
|
|
||||||
- chmod +x scaleway-cli
|
|
||||||
- ./scaleway-cli object config install type=rclone
|
|
||||||
- cd docs
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- mkdocs build
|
|
||||||
- zip -r docs.zip site/*
|
|
||||||
- cd site
|
|
||||||
- rclone copy . scaleway:akkoma-docs/$CI_COMMIT_BRANCH/
|
|
||||||
|
|
|
@ -22,11 +22,11 @@ Use the following mapping to figure out your flavour:
|
||||||
| distribution | architecture | flavour | available branches |
|
| distribution | architecture | flavour | available branches |
|
||||||
| --------------- | ------------------ | ------------------- | ------------------- |
|
| --------------- | ------------------ | ------------------- | ------------------- |
|
||||||
| debian bullseye | amd64 | amd64 | develop, stable |
|
| debian bullseye | amd64 | amd64 | develop, stable |
|
||||||
| debian bullseye | arm64 | arm64 | develop, stable |
|
| debian bullseye | arm64 | arm64 | stable |
|
||||||
| ubuntu focal | amd64 | amd64 | develop, stable |
|
| ubuntu focal | amd64 | amd64 | develop, stable |
|
||||||
| ubuntu focal | arm64 | arm64 | develop, stable |
|
| ubuntu focal | arm64 | arm64 | stable |
|
||||||
| ubuntu jammy | amd64 | amd64-ubuntu-jammy | develop, stable |
|
| ubuntu jammy | amd64 | amd64-ubuntu-jammy | develop, stable |
|
||||||
| ubuntu jammy | arm64 | arm64-ubuntu-jammy | develop, stable |
|
| ubuntu jammy | arm64 | arm64-ubuntu-jammy | stable |
|
||||||
| alpine | amd64 | amd64-musl | stable |
|
| alpine | amd64 | amd64-musl | stable |
|
||||||
| alpine | arm64 | arm64-musl | stable |
|
| alpine | arm64 | arm64-musl | stable |
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue