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

41 lines
862 B
YAML
Raw Normal View History

variables:
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
- &repo gitea.aireone.xyz/${CI_REPO,,}
- &platforms linux/amd64
matrix:
DOCKERFILE:
- .woodpecker/docker/Dockerfile.cyan
- .woodpecker/docker/Dockerfile.luacheck_just
- .woodpecker/docker/Dockerfile.stylua_just
pipeline:
dryrun:
image: *buildx
settings:
dockerfile: ${DOCKERFILE}
platforms: *platforms
dry_run: true
repo: *repo
when:
event: pull_request
path: ${DOCKERFILE}
publish:
image: *buildx
settings:
dockerfile: ${DOCKERFILE}
platforms: *platforms
registry: gitea.aireone.xyz
repo: *repo
auto_tag: true
username:
from_secret: publish_username
password:
from_secret: publish_token
when:
event: push
path: ${DOCKERFILE}
2022-11-28 20:33:35 +01:00
branches: master