Merge pull request 'Fix: Create and host docker images for the CI (#34)' (#43) from fix/ci-docker-build into master
Reviewed-on: #43
This commit is contained in:
commit
820faaca3c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue