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:
|
||||
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
|
||||
|
|
|
|||
Reference in a new issue