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:
|
variables:
|
||||||
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
||||||
- &platforms linux/amd64
|
- &platforms linux/amd64
|
||||||
|
- &dockerfile_path ${dockerfile_path}
|
||||||
- &when_path .woodpecker/docker-build.yml
|
- &when_path .woodpecker/docker-build.yml
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
DOCKERFILE:
|
DOCKERFILE:
|
||||||
- .woodpecker/docker/Dockerfile.cyan
|
- Dockerfile.cyan
|
||||||
- .woodpecker/docker/Dockerfile.luacheck_just
|
- Dockerfile.luacheck_just
|
||||||
- .woodpecker/docker/Dockerfile.stylua_just
|
- Dockerfile.stylua_just
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
dryrun:
|
dryrun:
|
||||||
image: *buildx
|
image: *buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ${DOCKERFILE}
|
dockerfile: ${dockerfile_path}${DOCKERFILE}
|
||||||
platforms: *platforms
|
platforms: *platforms
|
||||||
dry_run: true
|
dry_run: true
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
path:
|
path:
|
||||||
- *when_path
|
- *when_path
|
||||||
- ${DOCKERFILE}
|
- ${dockerfile_path}${DOCKERFILE}
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: *buildx
|
image: *buildx
|
||||||
settings:
|
settings:
|
||||||
dockerfile: ${DOCKERFILE}
|
dockerfile: ${dockerfile_path}${DOCKERFILE}
|
||||||
platforms: *platforms
|
platforms: *platforms
|
||||||
registry: gitea.aireone.xyz
|
registry: gitea.aireone.xyz
|
||||||
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE}
|
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE}
|
||||||
|
@ -38,6 +39,6 @@ pipeline:
|
||||||
event: push
|
event: push
|
||||||
path:
|
path:
|
||||||
- *when_path
|
- *when_path
|
||||||
- ${DOCKERFILE}
|
- ${dockerfile_path}${DOCKERFILE}
|
||||||
|
|
||||||
branches: master
|
branches: master
|
||||||
|
|
Loading…
Reference in New Issue