Reviewed-on: #39
This commit is contained in:
commit
53b1d5d26a
|
@ -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": {
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
depends_on:
|
||||
- lint
|
||||
|
||||
pipeline:
|
||||
prepare:
|
||||
image: akorn/luarocks:lua5.4-alpine
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
FROM ghcr.io/lunarmodules/luacheck:v0.26.1
|
||||
RUN apk add just
|
|
@ -0,0 +1,2 @@
|
|||
FROM alpine:edge
|
||||
RUN apk add just stylua
|
Loading…
Reference in New Issue