yamllint/.woodpecker/build.yaml
Simon Cornet 7d75ecb640
Some checks failed
ci/woodpecker/push/build Pipeline failed
fix: use single shell
2026-05-12 10:37:10 +02:00

19 lines
534 B
YAML

---
when:
- event: "push"
branch: "main"
- event: "manual"
steps:
# build yamllint container
- name: "build"
image: "cr.simoncor.net/quay/buildah/stable:latest"
privileged: true
commands:
- |
VERSION=$(grep -oP '(?<=yamllint==)[0-9.]+' Dockerfile.linux.amd64)
echo "Building yamllint version ${VERSION}"
buildah bud -t yamllint -f Dockerfile.linux.amd64 .
buildah tag yamllint cr.simoncor.net/yamllint:${VERSION}
buildah push cr.simoncor.net/yamllint:${VERSION}