ci: add release workflow

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-09-03 13:53:24 +02:00
parent aaf191ed4d
commit 8320434cd5
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

45
.woodpecker/release.yaml Normal file
View 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