diff --git a/.woodpecker/docker-build-cyan.yml b/.woodpecker/docker-build-cyan.yml new file mode 100644 index 0000000..f5e87be --- /dev/null +++ b/.woodpecker/docker-build-cyan.yml @@ -0,0 +1,35 @@ +variables: + - &buildx woodpeckerci/plugin-docker-buildx:2.0.0 + - &file Dockerfile.cyan + - &repo gitea.aireone.xyz/${CI_REPO} + - &platforms linux/amd64 + +pipeline: + dryrun: + image: *buildx + settings: + dockerfile: *file + platforms: *platforms + dry_run: true + repo: *repo + when: + branch: master + event: pull_request + path: *file + + publish: + image: *buildx + settings: + dockerfile: *file + 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: *file diff --git a/.woodpecker/docker-build-luacheck_just.yml b/.woodpecker/docker-build-luacheck_just.yml new file mode 100644 index 0000000..05082b0 --- /dev/null +++ b/.woodpecker/docker-build-luacheck_just.yml @@ -0,0 +1,35 @@ +variables: + - &buildx woodpeckerci/plugin-docker-buildx:2.0.0 + - &file Dockerfile.luacheck_just + - &repo gitea.aireone.xyz/${CI_REPO} + - &platforms linux/amd64 + +pipeline: + dryrun: + image: *buildx + settings: + dockerfile: *file + platforms: *platforms + dry_run: true + repo: *repo + when: + branch: master + event: pull_request + path: *file + + publish: + image: *buildx + settings: + dockerfile: *file + 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: *file diff --git a/.woodpecker/docker-build_stylua_just.yml b/.woodpecker/docker-build_stylua_just.yml new file mode 100644 index 0000000..0cfb6dd --- /dev/null +++ b/.woodpecker/docker-build_stylua_just.yml @@ -0,0 +1,35 @@ +variables: + - &buildx woodpeckerci/plugin-docker-buildx:2.0.0 + - &file Dockerfile.stylua_just + - &repo gitea.aireone.xyz/${CI_REPO} + - &platforms linux/amd64 + +pipeline: + dryrun: + image: *buildx + settings: + dockerfile: *file + platforms: *platforms + dry_run: true + repo: *repo + when: + branch: master + event: pull_request + path: *file + + publish: + image: *buildx + settings: + dockerfile: *file + 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: *file diff --git a/Dockerfile.cyan b/Dockerfile.cyan new file mode 100644 index 0000000..03eccbb --- /dev/null +++ b/Dockerfile.cyan @@ -0,0 +1,3 @@ +FROM akorn/luarocks:lua5.4-alpine +RUN apk add just gcc libc-dev musl-dev curl-dev +RUN luarocks install cyan diff --git a/Dockerfile.luacheck_just b/Dockerfile.luacheck_just new file mode 100644 index 0000000..1a48c1f --- /dev/null +++ b/Dockerfile.luacheck_just @@ -0,0 +1,2 @@ +FROM ghcr.io/lunarmodules/luacheck:v0.26.1 +RUN apk add just diff --git a/Dockerfile.stylua_just b/Dockerfile.stylua_just new file mode 100644 index 0000000..5a49718 --- /dev/null +++ b/Dockerfile.stylua_just @@ -0,0 +1,2 @@ +FROM alpine:edge +RUN apk add just stylua