feat: make CI work with prereleases

This commit is contained in:
Yarmo Mackenbach 2024-06-16 15:42:53 +02:00
parent 4a37e05116
commit 1c624636aa
No known key found for this signature in database
GPG key ID: C248C28D432560ED
2 changed files with 24 additions and 1 deletions

View file

@ -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

View file

@ -1,10 +1,11 @@
when: when:
branch: main
event: tag event: tag
evaluate: 'not (CI_COMMIT_TAG contains "-rc.")'
steps: steps:
build-latest-container: build-latest-container:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
settings: settings:
dry-run: true
registry: https://codeberg.org/v2 registry: https://codeberg.org/v2
username: username:
from_secret: codeberg_username from_secret: codeberg_username