45 lines
1000 B
YAML
45 lines
1000 B
YAML
variables:
|
|
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
|
- &platforms linux/amd64
|
|
- &dockerfile_path ${dockerfile_path}
|
|
- &when_path .woodpecker/docker-build.yml
|
|
|
|
matrix:
|
|
DOCKERFILE:
|
|
- Dockerfile.cyan
|
|
- Dockerfile.luacheck_just
|
|
- Dockerfile.stylua_just
|
|
|
|
pipeline:
|
|
dryrun:
|
|
image: *buildx
|
|
settings:
|
|
dockerfile: ${dockerfile_path}${DOCKERFILE}
|
|
platforms: *platforms
|
|
dry_run: true
|
|
when:
|
|
event: pull_request
|
|
path:
|
|
- *when_path
|
|
- ${dockerfile_path}${DOCKERFILE}
|
|
|
|
publish:
|
|
image: *buildx
|
|
settings:
|
|
dockerfile: ${dockerfile_path}${DOCKERFILE}
|
|
platforms: *platforms
|
|
registry: gitea.aireone.xyz
|
|
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE}
|
|
tag: latest
|
|
username:
|
|
from_secret: publish_username
|
|
password:
|
|
from_secret: publish_token
|
|
when:
|
|
event: push
|
|
path:
|
|
- *when_path
|
|
- ${dockerfile_path}${DOCKERFILE}
|
|
|
|
branches: master
|