Use the generated docker images in the CI (#46) #47

Merged
Aire-One merged 3 commits from feat/#46 into master 2022-12-09 21:18:12 +01:00
4 changed files with 11 additions and 15 deletions

View File

@ -8,6 +8,7 @@
},
"cSpell.words": [
"aireone",
"aire-one",
"ansicolors",
"awesomewm",
"buildx",

View File

@ -1,14 +1,14 @@
variables:
- &cyan gitea.aireone.xyz/aire-one/awesomewm.d.tl/cyan:latest
pipeline:
prepare:
image: akorn/luarocks:lua5.4-alpine
image: *cyan
commands:
- apk add just gcc libc-dev musl-dev curl-dev
- just install
build:
image: akorn/luarocks:lua5.4-alpine
image: *cyan
commands:
- apk add just gcc musl-dev
- luarocks install cyan
- just build
# run:
# image: akorn/luarocks:lua5.4-alpine

View File

@ -1,7 +1,6 @@
variables:
- &buildx woodpeckerci/plugin-docker-buildx:2.0.0
- &platforms linux/amd64
- &when_path .woodpecker/docker-build.yml
matrix:
DOCKERFILE:
@ -19,7 +18,7 @@ pipeline:
when:
event: pull_request
path:
- *when_path
- .woodpecker/docker-build.yml
- .woodpecker/docker/${DOCKERFILE}
publish:
@ -37,7 +36,7 @@ pipeline:
when:
event: push
path:
- *when_path
- .woodpecker/docker-build.yml
- .woodpecker/docker/${DOCKERFILE}
branches: master

View File

@ -19,29 +19,25 @@ pipeline:
# - ".woodpecker/**"
lint-lua:
image: ghcr.io/lunarmodules/luacheck:v0.26.1
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/luacheck_just:latest
group: lint
commands:
- apk add just
- just check-lua
when:
path: *when_path_lua
style-lua:
image: alpine:edge # Stylua is only available on edge repository for now
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/stylua_just:latest
group: lint
commands:
- apk add just stylua
- just check-format
when:
path: *when_path_lua
lint-teal:
image: akorn/luarocks:lua5.4-alpine
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/cyan:latest
group: lint
commands:
- apk add just gcc libc-dev musl-dev
- luarocks install cyan
- just check-teal
when:
path: *when_path_teal