packer-hcloud/.woodpecker/test.yml

24 lines
564 B
YAML
Raw Permalink Normal View History

2024-01-14 20:16:55 +00:00
---
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
2024-01-17 21:01:14 +00:00
- name: packer-fmt
2024-01-14 20:16:55 +00:00
image: docker.io/hashicorp/packer
commands:
- packer fmt -recursive -check -diff .
2024-01-17 21:01:14 +00:00
- name: packer-validate
image: docker.io/hashicorp/packer
commands:
2024-01-17 21:12:02 +00:00
- packer init rocky-9/
2024-01-17 21:46:05 +00:00
- packer validate -var-file=rocky-9/ci.pkrvars.hcl rocky-9/