build: add woodpecker
This commit is contained in:
parent
750e9432be
commit
586a376405
24
.woodpecker.yaml
Normal file
24
.woodpecker.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
pipeline:
|
||||
lint:
|
||||
image: alpine:3.21
|
||||
commands:
|
||||
- apk add --no-cache shellcheck git
|
||||
- git clone ${CI_REPO_REMOTE} .
|
||||
- shellcheck $(find . -type f -name "*.sh")
|
||||
|
||||
build:
|
||||
image: ubuntu:24.04
|
||||
depends_on:
|
||||
- lint
|
||||
environment:
|
||||
DOCKER_API_VERSION: "1.45"
|
||||
commands:
|
||||
- apt-get update -y
|
||||
- apt-get install -y --no-install-recommends curl sudo gnupg2 libx11-dev nscd
|
||||
- curl https://mise.run | sh
|
||||
- export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH"
|
||||
- mise install
|
||||
- git clone ${CI_REPO_REMOTE} .
|
||||
- mise run check_gomod
|
||||
- mise run test_ci
|
||||
- mise run test_integration_ci
|
Loading…
x
Reference in New Issue
Block a user