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:
|
variables:
|
||||||
- &repo 'git.schmidl.dev/schtobia/buildimage'
|
- &repo 'git.schmidl.dev/schtobia/buildimage'
|
||||||
|
- ®istry '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
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue