Merge pull request 'Fix: Create and host docker images for the CI (#34)' (#43) from fix/ci-docker-build into master
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker-build Pipeline failed Details
ci/woodpecker/push/lint Pipeline was successful Details

Reviewed-on: #43
This commit is contained in:
Aire-One 2022-12-09 19:13:02 +01:00
commit 820faaca3c
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