ci: add docker-build
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_stylua_just Pipeline was successful Details
ci/woodpecker/pr/docker-build-cyan Pipeline failed Details
ci/woodpecker/pr/docker-build-luacheck_just Pipeline failed Details
ci/woodpecker/pr/docker-build_stylua_just Pipeline failed 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:22:04 +01:00
parent f6e8f8e346
commit 1d8d11a0b6
6 changed files with 112 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

3
Dockerfile.cyan Normal file
View File

@ -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

2
Dockerfile.luacheck_just Normal file
View File

@ -0,0 +1,2 @@
FROM ghcr.io/lunarmodules/luacheck:v0.26.1
RUN apk add just

2
Dockerfile.stylua_just Normal file
View File

@ -0,0 +1,2 @@
FROM alpine:edge
RUN apk add just stylua