Create and host docker images for the CI (#34) #39

Merged
Aire-One merged 8 commits from feat/#34 into master 2022-12-09 18:08:18 +01:00
6 changed files with 112 additions and 0 deletions
Showing only changes of commit 1d8d11a0b6 - Show all commits

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