ci: add release workflow
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
aaf191ed4d
commit
8320434cd5
1 changed files with 45 additions and 0 deletions
45
.woodpecker/release.yaml
Normal file
45
.woodpecker/release.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# depends_on:
|
||||
# - test
|
||||
|
||||
when:
|
||||
# - event: [tag]
|
||||
- event: push
|
||||
branch: ${CI_DEFAULT_BRANCH}
|
||||
|
||||
variables:
|
||||
- &buildx-plugin "woodpeckerci/plugin-docker-buildx:6.0.2"
|
||||
- &repo "registry.mareshq.com/woodpecker-plugins/wrangler-deploy"
|
||||
- &platforms "linux/arm64/v8,linux/amd64"
|
||||
|
||||
steps:
|
||||
publish-next:
|
||||
image: *buildx-plugin
|
||||
settings:
|
||||
repo: *repo
|
||||
platforms: *platforms
|
||||
tag: next
|
||||
when:
|
||||
branch: main
|
||||
event: push
|
||||
|
||||
# publish-tag:
|
||||
# image: *buildx-plugin
|
||||
# settings:
|
||||
# repo: *repo
|
||||
# platforms: *platforms
|
||||
# tag: [latest, "${CI_COMMIT_TAG}"]
|
||||
# logins:
|
||||
# # Default DockerHub login
|
||||
# - registry: https://index.docker.io/v1/
|
||||
# username:
|
||||
# from_secret: docker_username
|
||||
# password:
|
||||
# from_secret: docker_password
|
||||
# # Additional Codeberg login
|
||||
# - registry: https://codeberg.org
|
||||
# username:
|
||||
# from_secret: cb_username
|
||||
# password:
|
||||
# from_secret: cb_password
|
||||
# when:
|
||||
# event: tag
|
||||
Loading…
Add table
Add a link
Reference in a new issue