migrate CI config to v2

This commit is contained in:
Floatingghost 2024-05-27 02:56:05 +01:00
parent 5bdef8c724
commit 4078fd655c
5 changed files with 15 additions and 16 deletions

View File

@ -1,4 +1,5 @@
platform: linux/amd64 labels:
platform: linux/amd64
depends_on: depends_on:
- test - test
@ -34,7 +35,7 @@ variables:
- &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)" - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
- &mix-clean "mix deps.clean --all && mix clean" - &mix-clean "mix deps.clean --all && mix clean"
pipeline: steps:
# Canonical amd64 # Canonical amd64
debian-bookworm: debian-bookworm:
image: hexpm/elixir:1.15.4-erlang-26.0.2-debian-bookworm-20230612 image: hexpm/elixir:1.15.4-erlang-26.0.2-debian-bookworm-20230612

View File

@ -1,4 +1,5 @@
platform: linux/arm64 labels:
platform: linux/arm64
depends_on: depends_on:
- test - test
@ -34,7 +35,7 @@ variables:
- &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)" - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
- &mix-clean "mix deps.clean --all && mix clean" - &mix-clean "mix deps.clean --all && mix clean"
pipeline: steps:
# Canonical arm64 # Canonical arm64
debian-bookworm: debian-bookworm:
image: hexpm/elixir:1.15.4-erlang-26.0.2-debian-bookworm-20230612 image: hexpm/elixir:1.15.4-erlang-26.0.2-debian-bookworm-20230612

View File

@ -1,4 +1,5 @@
platform: linux/amd64 labels:
platform: linux/amd64
depends_on: depends_on:
- test - test
@ -45,7 +46,7 @@ variables:
- &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)" - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
- &mix-clean "mix deps.clean --all && mix clean" - &mix-clean "mix deps.clean --all && mix clean"
pipeline: steps:
docs: docs:
<<: *on-point-release <<: *on-point-release
secrets: secrets:

View File

@ -1,4 +1,5 @@
platform: linux/amd64 labels:
platform: linux/amd64
variables: variables:
- &scw-secrets - &scw-secrets
@ -41,7 +42,7 @@ variables:
- &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)" - &clean "(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)"
- &mix-clean "mix deps.clean --all && mix clean" - &mix-clean "mix deps.clean --all && mix clean"
pipeline: steps:
lint: lint:
image: akkoma/ci-base:1.15-otp26 image: akkoma/ci-base:1.15-otp26
<<: *on-pr-open <<: *on-pr-open

View File

@ -1,4 +1,5 @@
platform: linux/amd64 labels:
platform: linux/amd64
depends_on: depends_on:
- lint - lint
@ -12,12 +13,6 @@ matrix:
- 25 - 25
- 26 - 26
include: include:
- ELIXIR_VERSION: 1.14
OTP_VERSION: 25
- ELIXIR_VERSION: 1.15
OTP_VERSION: 25
- ELIXIR_VERSION: 1.15
OTP_VERSION: 26
- ELIXIR_VERSION: 1.16 - ELIXIR_VERSION: 1.16
OTP_VERSION: 26 OTP_VERSION: 26
@ -73,7 +68,7 @@ services:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
pipeline: steps:
test: test:
image: akkoma/ci-base:${ELIXIR_VERSION}-otp${OTP_VERSION} image: akkoma/ci-base:${ELIXIR_VERSION}-otp${OTP_VERSION}
<<: *on-pr-open <<: *on-pr-open