41 lines
829 B
YAML
41 lines
829 B
YAML
variables:
|
|
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
|
|
- &repo gitea.aireone.xyz/${CI_REPO,,}
|
|
- &platforms linux/amd64
|
|
|
|
matrix:
|
|
DOCKERFILE:
|
|
- Dockerfile.cyan
|
|
- Dockerfile.luacheck_just
|
|
- Dockerfile.stylua_just
|
|
|
|
pipeline:
|
|
dryrun:
|
|
image: *buildx
|
|
settings:
|
|
dockerfile: ${DOCKERFILE}
|
|
platforms: *platforms
|
|
dry_run: true
|
|
repo: *repo
|
|
when:
|
|
branch: master
|
|
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:
|
|
branch: master
|
|
event: push
|
|
path: ${DOCKERFILE}
|