1
0
Fork 0
This repository has been archived on 2025-08-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-hcloud-images/.gitlab-ci.yml
Vojtěch Mareš ccc1c08044
ci: single init job instead of parallel
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
2025-06-13 20:50:38 +02:00

37 lines
616 B
YAML

image:
name: hashicorp/packer:light
entrypoint: [""]
variables:
PACKER_CONFIG_DIR: $CI_PROJECT_DIR
cache:
key: "packer-plugins" # Define a key for Packer plugins
paths:
- "$PACKER_CONFIG_DIR/.packer.d"
stages:
- validate
- build
.parallel:
parallel:
matrix:
- IMAGE:
- flatcar-stable
- talos-v1.10.3
validate:
stage: validate
script:
- packer init images
- packer fmt -check images
- packer validate images
build-image:
extends: .parallel
stage: build
script:
- packer build $IMAGE.pkr.hcl
rules:
- if: $CI_COMMIT_BRANCH == "main"