From 1c624636aa104b86e4b801ca18a3372fa74faf58 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 16 Jun 2024 15:42:53 +0200 Subject: [PATCH] feat: make CI work with prereleases --- .woodpecker/.release-prerelease.yml | 22 ++++++++++++++++++++++ .woodpecker/.release.yml | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .woodpecker/.release-prerelease.yml diff --git a/.woodpecker/.release-prerelease.yml b/.woodpecker/.release-prerelease.yml new file mode 100644 index 0000000..374ca2c --- /dev/null +++ b/.woodpecker/.release-prerelease.yml @@ -0,0 +1,22 @@ +when: + event: tag + evaluate: 'CI_COMMIT_TAG contains "-rc."' +steps: + build-latest-container: + image: woodpeckerci/plugin-docker-buildx + settings: + dry-run: true + registry: https://codeberg.org/v2 + username: + from_secret: codeberg_username + password: + from_secret: codeberg_password + repo: codeberg.org/keyoxide/keyoxide-web + default_tag: "next" + auto_tag: true + build_args_from_env: + - CI_COMMIT_SHA + - CI_COMMIT_BRANCH + +depends_on: + - test \ No newline at end of file diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 5ccf827..9bdc769 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -1,10 +1,11 @@ when: - branch: main event: tag + evaluate: 'not (CI_COMMIT_TAG contains "-rc.")' steps: build-latest-container: image: woodpeckerci/plugin-docker-buildx settings: + dry-run: true registry: https://codeberg.org/v2 username: from_secret: codeberg_username