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