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

43 lines
969 B
YAML
Raw Normal View History

variables:
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
- &platforms linux/amd64
matrix:
DOCKERFILE:
2022-12-09 19:12:05 +01:00
- Dockerfile.cyan
- Dockerfile.luacheck_just
- Dockerfile.stylua_just
pipeline:
dryrun:
image: *buildx
settings:
2022-12-09 19:50:19 +01:00
dockerfile: .woodpecker/docker/${DOCKERFILE}
platforms: *platforms
dry_run: true
when:
event: pull_request
2022-12-09 18:41:58 +01:00
path:
2022-12-09 21:12:24 +01:00
- .woodpecker/docker-build.yml
2022-12-09 19:50:19 +01:00
- .woodpecker/docker/${DOCKERFILE}
publish:
image: *buildx
settings:
2022-12-09 19:50:19 +01:00
dockerfile: .woodpecker/docker/${DOCKERFILE}
platforms: *platforms
registry: gitea.aireone.xyz
2022-12-09 19:35:15 +01:00
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE/Dockerfile./}
tag: latest
username:
from_secret: publish_username
password:
from_secret: publish_token
when:
event: push
2022-12-09 18:41:58 +01:00
path:
2022-12-09 21:12:24 +01:00
- .woodpecker/docker-build.yml
2022-12-09 19:50:19 +01:00
- .woodpecker/docker/${DOCKERFILE}
2022-11-28 20:33:35 +01:00
branches: master