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 52 additions and 3 deletions

View File

@ -7,9 +7,13 @@
"editor.acceptSuggestionOnEnter": "off" "editor.acceptSuggestionOnEnter": "off"
}, },
"cSpell.words": [ "cSpell.words": [
"aireone",
"ansicolors", "ansicolors",
"awesomewm", "awesomewm",
"buildx",
"dryrun",
"getcontent", "getcontent",
"gitea",
"htmlparser", "htmlparser",
"isdir", "isdir",
"justfile", "justfile",
@ -26,6 +30,7 @@
"tablex", "tablex",
"tmpl", "tmpl",
"wibox", "wibox",
"woodpeckerci",
"writefunction" "writefunction"
], ],
"files.associations": { "files.associations": {

View File

@ -1,6 +1,3 @@
depends_on:
- lint
pipeline: pipeline:
prepare: prepare:
image: akorn/luarocks:lua5.4-alpine image: akorn/luarocks:lua5.4-alpine

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:
- .woodpecker/docker/Dockerfile.cyan
- .woodpecker/docker/Dockerfile.luacheck_just
- .woodpecker/docker/Dockerfile.stylua_just
pipeline:
dryrun:
image: *buildx
settings:
dockerfile: ${DOCKERFILE}
platforms: *platforms
dry_run: true
repo: *repo
when:
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:
event: push
path: ${DOCKERFILE}
branches: master

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

View File

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

View File

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