awesomewm.d.tl/.woodpecker/docker-build.yml

43 lines
977 B
YAML

variables:
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
- &platforms linux/amd64
matrix:
DOCKERFILE:
- Dockerfile.cyan
- Dockerfile.luacheck_just
- Dockerfile.stylua_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