ci: define PACKER_CONFIG_DIR env var for caching
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
2a001e388e
commit
62ecce86ad
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ image:
|
||||||
variables:
|
variables:
|
||||||
PACKER_LOG: 1 # enable detailed logging
|
PACKER_LOG: 1 # enable detailed logging
|
||||||
PACKER_VAR_FILE: "vars.pkrvars.hcl"
|
PACKER_VAR_FILE: "vars.pkrvars.hcl"
|
||||||
|
PACKER_CONFIG_DIR: $CI_PROJECT_DIR
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- validate
|
- validate
|
||||||
|
|
@ -27,7 +28,7 @@ validate:
|
||||||
cache:
|
cache:
|
||||||
key: "packer-plugins" # Define a key for Packer plugins
|
key: "packer-plugins" # Define a key for Packer plugins
|
||||||
paths:
|
paths:
|
||||||
- "~/.config/packer" # Or your specific plugin path
|
- "$PACKER_CONFIG_DIR/.packer.d"
|
||||||
|
|
||||||
build-image:
|
build-image:
|
||||||
extends: .parallel
|
extends: .parallel
|
||||||
|
|
|
||||||
Reference in a new issue