Merge pull request 'Create and host docker images for the CI (#34)' (#39) from feat/#34 into master
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/docker-build Pipeline was successful Details
ci/woodpecker/push/lint Pipeline was successful Details

Reviewed-on: #39
This commit is contained in:
Aire-One 2022-12-09 18:08:15 +01:00
commit 53b1d5d26a
6 changed files with 52 additions and 3 deletions

View File

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

View File

@ -1,6 +1,3 @@
depends_on:
- lint
pipeline:
prepare:
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