ci: move cache directive to global scope
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
62ecce86ad
commit
0fa4f3db93
1 changed files with 5 additions and 4 deletions
|
|
@ -7,6 +7,11 @@ variables:
|
||||||
PACKER_VAR_FILE: "vars.pkrvars.hcl"
|
PACKER_VAR_FILE: "vars.pkrvars.hcl"
|
||||||
PACKER_CONFIG_DIR: $CI_PROJECT_DIR
|
PACKER_CONFIG_DIR: $CI_PROJECT_DIR
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: "packer-plugins" # Define a key for Packer plugins
|
||||||
|
paths:
|
||||||
|
- "$PACKER_CONFIG_DIR/.packer.d"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- validate
|
- validate
|
||||||
- build
|
- build
|
||||||
|
|
@ -25,10 +30,6 @@ validate:
|
||||||
- packer init $PACKER_WORKSPACE
|
- packer init $PACKER_WORKSPACE
|
||||||
- packer fmt -check $PACKER_WORKSPACE
|
- packer fmt -check $PACKER_WORKSPACE
|
||||||
- packer validate $PACKER_WORKSPACE
|
- packer validate $PACKER_WORKSPACE
|
||||||
cache:
|
|
||||||
key: "packer-plugins" # Define a key for Packer plugins
|
|
||||||
paths:
|
|
||||||
- "$PACKER_CONFIG_DIR/.packer.d"
|
|
||||||
|
|
||||||
build-image:
|
build-image:
|
||||||
extends: .parallel
|
extends: .parallel
|
||||||
|
|
|
||||||
Reference in a new issue