ci(docker-build): fix `when`
This commit is contained in:
parent
6ed6ae8acd
commit
5d8c75ad45
|
@ -1,7 +1,6 @@
|
|||
variables:
|
||||
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
||||
- &platforms linux/amd64
|
||||
- &when_path ".woodpecker/docker-build.yml"
|
||||
|
||||
matrix:
|
||||
DOCKERFILE:
|
||||
|
@ -19,7 +18,7 @@ pipeline:
|
|||
when:
|
||||
event: pull_request
|
||||
path:
|
||||
- *when_path
|
||||
- .woodpecker/docker-build.yml
|
||||
- .woodpecker/docker/${DOCKERFILE}
|
||||
|
||||
publish:
|
||||
|
@ -37,7 +36,7 @@ pipeline:
|
|||
when:
|
||||
event: push
|
||||
path:
|
||||
- *when_path
|
||||
- .woodpecker/docker-build.yml
|
||||
- .woodpecker/docker/${DOCKERFILE}
|
||||
|
||||
branches: master
|
||||
|
|
Loading…
Reference in New Issue