diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml new file mode 100644 index 0000000..96ba18a --- /dev/null +++ b/.woodpecker/docker-build.yml @@ -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}