fix: push also to registry on tags
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Tobias Schmidl 2023-09-22 08:50:30 +02:00
parent 874ecd0c01
commit abcb01e3d1

View file

@ -5,13 +5,17 @@
--- ---
variables: variables:
- &repo 'git.schmidl.dev/schtobia/buildimage' - &repo 'git.schmidl.dev/schtobia/buildimage'
- &registry 'git.schmidl.dev'
- &platforms 'linux/amd64, linux/arm64/v8'
steps: steps:
docker-build: docker-build:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
group: build group: build
settings: settings:
repo: *repo repo: *repo
registry: git.schmidl.dev registry: *registry
platforms: *platforms
dry_run: true dry_run: true
when: when:
branch: branch:
@ -20,18 +24,18 @@ steps:
publish-next-agent: publish-next-agent:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
group: publish group: build
secrets: [docker_username, docker_password] secrets: [docker_username, docker_password]
settings: settings:
repo: *repo repo: *repo
registry: git.schmidl.dev registry: *registry
dockerfile: dockerfile platforms: *platforms
platforms: linux/amd64,linux/arm64/v8
username: username:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
when: when:
event: [push, tag]
branch: master branch: master
event: push
... ...