From 160b065cac8d11ab4dc86375bd519a37d49f4423 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 21 Apr 2024 16:32:15 +0000 Subject: [PATCH] Try setting cache policy --- .gitlab-ci-build.yml.in | 7 ++++--- .gitlab-ci.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci-build.yml.in b/.gitlab-ci-build.yml.in index 51f8aa9..6a69f53 100644 --- a/.gitlab-ci-build.yml.in +++ b/.gitlab-ci-build.yml.in @@ -11,6 +11,10 @@ stages: - sources/build.pkr.hcl paths: - ./packer_config/ + - key: isofiles + paths: + - ./cache/*.iso + policy: pull rules: - if: $CI_COMMIT_TAG variables: @@ -25,9 +29,6 @@ stages: - pipeline: $PARENT_PIPELINE_ID job: generate artifacts: true - - pipeline: $PARENT_PIPELINE_ID - job: download - artifacts: true tags: - ${tag} variables: &variables diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 43fa7d0..df91067 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,15 +63,16 @@ shellcheck: downloads: stage: cache retry: 2 - artifacts: - paths: - - cache/*.iso cache: - key: files: - sources/build.pkr.hcl paths: - ./packer_config/ + - key: isofiles + paths: + - ./cache/*.iso + policy: push-pull script: - packer init sources - bash cache.sh