From 0fa4f3db93124446442b9e67660a3953070bdd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Mare=C5=A1?= Date: Fri, 13 Jun 2025 19:51:27 +0200 Subject: [PATCH] ci: move cache directive to global scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vojtěch Mareš --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89736ae..9b44ed2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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