fix: push also to registry on tags
This commit is contained in:
parent
874ecd0c01
commit
abcb01e3d1
1 changed files with 10 additions and 6 deletions
|
@ -5,13 +5,17 @@
|
|||
---
|
||||
variables:
|
||||
- &repo 'git.schmidl.dev/schtobia/buildimage'
|
||||
- ®istry '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
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue