1
0
Fork 0

ci: define PACKER_CONFIG_DIR env var for caching

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-06-13 19:48:28 +02:00
parent 2a001e388e
commit 62ecce86ad
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -5,6 +5,7 @@ image:
variables:
PACKER_LOG: 1 # enable detailed logging
PACKER_VAR_FILE: "vars.pkrvars.hcl"
PACKER_CONFIG_DIR: $CI_PROJECT_DIR
stages:
- validate
@ -27,7 +28,7 @@ validate:
cache:
key: "packer-plugins" # Define a key for Packer plugins
paths:
- "~/.config/packer" # Or your specific plugin path
- "$PACKER_CONFIG_DIR/.packer.d"
build-image:
extends: .parallel