ci(docker-build): all in one with matrix
ci/woodpecker/push/build unknown status Details
ci/woodpecker/push/lint unknown status Details
ci/woodpecker/push/docker-build-cyan Pipeline was successful Details
ci/woodpecker/push/docker-build-luacheck_just Pipeline was successful Details
ci/woodpecker/push/docker-build Pipeline was successful Details
ci/woodpecker/push/docker-build_stylua_just Pipeline was successful Details
ci/woodpecker/pr/docker-build-cyan Pipeline was successful Details
ci/woodpecker/pr/docker-build-luacheck_just Pipeline was successful Details
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/docker-build_stylua_just Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details

This commit is contained in:
Aire-One 2022-11-28 19:40:00 +01:00
parent 8463cbe423
commit 1577c9db94
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
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}