ci(docker-build): fix paths
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/docker-build Pipeline failed Details
ci/woodpecker/pr/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2022-12-09 19:12:05 +01:00
parent dc7d3102ca
commit 258b6274ba
1 changed files with 8 additions and 7 deletions

View File

@ -1,31 +1,32 @@
variables:
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
- &platforms linux/amd64
- &dockerfile_path ${dockerfile_path}
- &when_path .woodpecker/docker-build.yml
matrix:
DOCKERFILE:
- .woodpecker/docker/Dockerfile.cyan
- .woodpecker/docker/Dockerfile.luacheck_just
- .woodpecker/docker/Dockerfile.stylua_just
- Dockerfile.cyan
- Dockerfile.luacheck_just
- Dockerfile.stylua_just
pipeline:
dryrun:
image: *buildx
settings:
dockerfile: ${DOCKERFILE}
dockerfile: ${dockerfile_path}${DOCKERFILE}
platforms: *platforms
dry_run: true
when:
event: pull_request
path:
- *when_path
- ${DOCKERFILE}
- ${dockerfile_path}${DOCKERFILE}
publish:
image: *buildx
settings:
dockerfile: ${DOCKERFILE}
dockerfile: ${dockerfile_path}${DOCKERFILE}
platforms: *platforms
registry: gitea.aireone.xyz
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE}
@ -38,6 +39,6 @@ pipeline:
event: push
path:
- *when_path
- ${DOCKERFILE}
- ${dockerfile_path}${DOCKERFILE}
branches: master