1
0
Fork 0

ci: move cache directive to global scope

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

View file

@ -7,6 +7,11 @@ variables:
PACKER_VAR_FILE: "vars.pkrvars.hcl"
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
@ -25,10 +30,6 @@ validate:
- packer init $PACKER_WORKSPACE
- packer fmt -check $PACKER_WORKSPACE
- packer validate $PACKER_WORKSPACE
cache:
key: "packer-plugins" # Define a key for Packer plugins
paths:
- "$PACKER_CONFIG_DIR/.packer.d"
build-image:
extends: .parallel