2022-11-28 19:40:00 +01:00
|
|
|
variables:
|
|
|
|
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
|
|
|
- &repo gitea.aireone.xyz/${CI_REPO,,}
|
|
|
|
- &platforms linux/amd64
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
DOCKERFILE:
|
2022-12-09 17:52:52 +01:00
|
|
|
- .woodpecker/docker/Dockerfile.cyan
|
|
|
|
- .woodpecker/docker/Dockerfile.luacheck_just
|
|
|
|
- .woodpecker/docker/Dockerfile.stylua_just
|
2022-11-28 19:40:00 +01:00
|
|
|
|
|
|
|
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
|