From 61e0d709dee905a63e392bef988ad572f71e587f Mon Sep 17 00:00:00 2001 From: gustavderdrache Date: Tue, 27 Sep 2022 09:17:17 -0400 Subject: [PATCH 1/2] EPAD8-1854: Disable COPY caching --- .buildkite/feature.yml | 5 +---- .buildkite/webcms.yml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.buildkite/feature.yml b/.buildkite/feature.yml index a33cfd9e55..ceb571f7b2 100644 --- a/.buildkite/feature.yml +++ b/.buildkite/feature.yml @@ -62,9 +62,7 @@ steps: # 2. Kaniko build caching is enabled. Intermediate layers are # pushed to a cache repository in ECR. Subsequent builds can # query the cache instead of re-executing more expensive build - # steps. We also cache COPY instructions, in order to - # ameliorate the cost of copying /var/www/html for nginx and - # drush. + # steps. # 3. The snapshot mode is set to "redo" instead of "full". This # uses cheaper but less accurate metadata for FS snapshots. We # assume this won't cause any issues for us, as any changes in @@ -91,7 +89,6 @@ steps: /kaniko/executor \ --context=/workspace/services/drupal \ --cache \ - --cache-copy-layers \ --cache-repo="${WEBCMS_REPO_URL}/webcms-${WEBCMS_ENVIRONMENT}-cache" \ --skip-unused-stages \ --snapshotMode=redo \ diff --git a/.buildkite/webcms.yml b/.buildkite/webcms.yml index 682d591d00..ae585181fa 100644 --- a/.buildkite/webcms.yml +++ b/.buildkite/webcms.yml @@ -61,7 +61,7 @@ steps: /kaniko/executor \ --context=/workspace/services/drupal \ --cache \ - --cache-copy-layers \ + --cache-run-layers \ --cache-repo="${WEBCMS_REPO_URL}/webcms-${WEBCMS_ENVIRONMENT}-cache" \ --skip-unused-stages \ --snapshotMode=redo \ From 9fdcb4df959322c8908acd28fff5b4ac4fe76e9d Mon Sep 17 00:00:00 2001 From: gustavderdrache Date: Tue, 27 Sep 2022 09:28:43 -0400 Subject: [PATCH 2/2] EPAD8-1854: --cache-run-layers is on by default --- .buildkite/webcms.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.buildkite/webcms.yml b/.buildkite/webcms.yml index ae585181fa..f2e974a08a 100644 --- a/.buildkite/webcms.yml +++ b/.buildkite/webcms.yml @@ -61,7 +61,6 @@ steps: /kaniko/executor \ --context=/workspace/services/drupal \ --cache \ - --cache-run-layers \ --cache-repo="${WEBCMS_REPO_URL}/webcms-${WEBCMS_ENVIRONMENT}-cache" \ --skip-unused-stages \ --snapshotMode=redo \