From 1be18a9f4cdfb722189c879f44335c4a8fa32be7 Mon Sep 17 00:00:00 2001 From: Floatingghost Date: Sun, 5 Jan 2025 16:37:54 +0000 Subject: [PATCH] update deprecated CI config --- .woodpecker/build-amd64.yml | 15 +++++++++------ .woodpecker/build-arm64.yml | 13 ++++++++----- .woodpecker/docs.yml | 4 ---- .woodpecker/lint.yml | 4 ---- .woodpecker/test.yml | 4 ---- 5 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.woodpecker/build-amd64.yml b/.woodpecker/build-amd64.yml index 32bbd2456..0a41fafef 100644 --- a/.woodpecker/build-amd64.yml +++ b/.woodpecker/build-amd64.yml @@ -6,9 +6,12 @@ depends_on: variables: - &scw-secrets - - SCW_ACCESS_KEY - - SCW_SECRET_KEY - - SCW_DEFAULT_ORGANIZATION_ID + SCW_ACCESS_KEY: + from_secret: SCW_ACCESS_KEY + SCW_SECRET_KEY: + from_secret: SCW_SECRET_KEY + SCW_DEFAULT_ORGANIZATION_ID: + from_secret: SCW_DEFAULT_ORGANIZATION_ID - &setup-hex "mix local.hex --force && mix local.rebar --force" - &on-release when: @@ -56,7 +59,7 @@ steps: release-debian-bookworm: image: akkoma/releaser <<: *on-release - secrets: *scw-secrets + environment: *scw-secrets commands: - export SOURCE=akkoma-amd64.zip # AMD64 @@ -85,7 +88,7 @@ steps: release-debian-bullseye: image: akkoma/releaser <<: *on-release - secrets: *scw-secrets + environment: *scw-secrets commands: - export SOURCE=akkoma-amd64-debian-bullseye.zip # AMD64 @@ -111,7 +114,7 @@ steps: release-musl: image: akkoma/releaser <<: *on-stable - secrets: *scw-secrets + environment: *scw-secrets commands: - export SOURCE=akkoma-amd64-musl.zip - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-amd64-musl.zip diff --git a/.woodpecker/build-arm64.yml b/.woodpecker/build-arm64.yml index 7bcdc1435..2ee94be3b 100644 --- a/.woodpecker/build-arm64.yml +++ b/.woodpecker/build-arm64.yml @@ -6,9 +6,12 @@ depends_on: variables: - &scw-secrets - - SCW_ACCESS_KEY - - SCW_SECRET_KEY - - SCW_DEFAULT_ORGANIZATION_ID + SCW_ACCESS_KEY: + from_secret: SCW_ACCESS_KEY + SCW_SECRET_KEY: + from_secret: SCW_SECRET_KEY + SCW_DEFAULT_ORGANIZATION_ID: + from_secret: SCW_DEFAULT_ORGANIZATION_ID - &setup-hex "mix local.hex --force && mix local.rebar --force" - &on-release when: @@ -56,7 +59,7 @@ steps: release-debian-bookworm: image: akkoma/releaser:arm64 <<: *on-release - secrets: *scw-secrets + environment: *scw-secrets commands: - export SOURCE=akkoma-arm64.zip - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-arm64-ubuntu-jammy.zip @@ -83,7 +86,7 @@ steps: release-musl: image: akkoma/releaser:arm64 <<: *on-stable - secrets: *scw-secrets + environment: *scw-secrets commands: - export SOURCE=akkoma-arm64-musl.zip - export DEST=scaleway:akkoma-updates/$${CI_COMMIT_TAG:-"$CI_COMMIT_BRANCH"}/akkoma-arm64-musl.zip diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml index be7444e28..c550c3022 100644 --- a/.woodpecker/docs.yml +++ b/.woodpecker/docs.yml @@ -6,10 +6,6 @@ depends_on: - build-amd64 variables: - - &scw-secrets - - SCW_ACCESS_KEY - - SCW_SECRET_KEY - - SCW_DEFAULT_ORGANIZATION_ID - &setup-hex "mix local.hex --force && mix local.rebar --force" - &on-release when: diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 623494301..70e8fc95d 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -2,10 +2,6 @@ labels: platform: linux/amd64 variables: - - &scw-secrets - - SCW_ACCESS_KEY - - SCW_SECRET_KEY - - SCW_DEFAULT_ORGANIZATION_ID - &setup-hex "mix local.hex --force && mix local.rebar --force" - &on-release when: diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 45cf7f93d..bef503752 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -17,10 +17,6 @@ matrix: OTP_VERSION: 26 variables: - - &scw-secrets - - SCW_ACCESS_KEY - - SCW_SECRET_KEY - - SCW_DEFAULT_ORGANIZATION_ID - &setup-hex "mix local.hex --force && mix local.rebar --force" - &on-release when: