wrangler-deploy/.woodpecker/release.yaml
Vojtěch Mareš cd37b02196
ci(release): add registry credentials from secret
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-09-03 16:45:21 +02:00

51 lines
1.5 KiB
YAML

# 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
logins:
- registry: https://registry.mareshq.com
username:
from_secret: docker_username
password:
from_secret: docker_password
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