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