mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
feat: make CI work with prereleases
This commit is contained in:
parent
4a37e05116
commit
1c624636aa
2 changed files with 24 additions and 1 deletions
22
.woodpecker/.release-prerelease.yml
Normal file
22
.woodpecker/.release-prerelease.yml
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue