diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml index 22d7b19..a9566fc 100644 --- a/.woodpecker/docker-build.yml +++ b/.woodpecker/docker-build.yml @@ -1,6 +1,8 @@ variables: - &buildx woodpeckerci/plugin-docker-buildx:2.0.0 - &platforms linux/amd64 + - &when_path + - ".woodpecker/docker-build.yml" matrix: DOCKERFILE: @@ -17,7 +19,9 @@ pipeline: dry_run: true when: event: pull_request - path: ${DOCKERFILE} + path: + << *when_path + - ${DOCKERFILE} publish: image: *buildx @@ -33,6 +37,8 @@ pipeline: from_secret: publish_token when: event: push - path: ${DOCKERFILE} + path: + << *when_path + - ${DOCKERFILE} branches: master