packer-hcloud/.woodpecker/test.yml
Robert Kaussow b697c65287
All checks were successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
fix packer validate
2024-01-17 22:46:05 +01:00

24 lines
564 B
YAML

---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: git-spaces
image: quay.io/thegeeklab/alpine-tools
commands:
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
- name: packer-fmt
image: docker.io/hashicorp/packer
commands:
- packer fmt -recursive -check -diff .
- name: packer-validate
image: docker.io/hashicorp/packer
commands:
- packer init rocky-9/
- packer validate -var-file=rocky-9/ci.pkrvars.hcl rocky-9/