2022-11-28 19:40:00 +01:00
|
|
|
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
|
2022-11-28 19:40:00 +01:00
|
|
|
|
|
|
|
pipeline:
|
|
|
|
dryrun:
|
|
|
|
image: *buildx
|
|
|
|
settings:
|
2022-12-09 19:50:19 +01:00
|
|
|
dockerfile: .woodpecker/docker/${DOCKERFILE}
|
2022-11-28 19:40:00 +01:00
|
|
|
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}
|
2022-11-28 19:40:00 +01:00
|
|
|
|
|
|
|
publish:
|
|
|
|
image: *buildx
|
|
|
|
settings:
|
2022-12-09 19:50:19 +01:00
|
|
|
dockerfile: .woodpecker/docker/${DOCKERFILE}
|
2022-11-28 19:40:00 +01:00
|
|
|
platforms: *platforms
|
|
|
|
registry: gitea.aireone.xyz
|
2022-12-09 19:35:15 +01:00
|
|
|
repo: gitea.aireone.xyz/${CI_REPO,,}/${DOCKERFILE/Dockerfile./}
|
2022-12-09 18:22:59 +01:00
|
|
|
tag: latest
|
2022-11-28 19:40:00 +01:00
|
|
|
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
|