From a1656d8f5471bf6f50eb26dc6953665b7efc8987 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 6 Sep 2026 22:02:26 -0400 Subject: [PATCH] Clone the git repo instead of using ADD. Using ADD breaks the caching. --- .../pipeline-foreign-document-test.yaml | 15 ++++++++++++++- docker/organic_test/Dockerfile | 12 +++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.webhook_bridge/pipeline-foreign-document-test.yaml b/.webhook_bridge/pipeline-foreign-document-test.yaml index b5aaf7d..caf63a1 100644 --- a/.webhook_bridge/pipeline-foreign-document-test.yaml +++ b/.webhook_bridge/pipeline-foreign-document-test.yaml @@ -103,7 +103,7 @@ spec: - name: url value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git - name: revision - value: f909b6670474346e37a57a2d23131860b6a1a635 + value: d8077c77683e5be6146586f88d26b4de5fa2a03e - name: pathInRepo value: task/buildah-rootless-daemonless/0.1/buildah-rootless-daemonless.yaml params: @@ -143,6 +143,8 @@ spec: workspace: git-source - name: dockerconfig workspace: docker-credentials + - name: buildah-storage + workspace: buildah-storage runAfter: - fetch-repository - name: run-test @@ -286,6 +288,7 @@ spec: - name: git-source - name: docker-credentials - name: cargo-cache + - name: buildah-storage workspaces: - name: git-source volumeClaimTemplate: @@ -297,6 +300,16 @@ spec: requests: storage: 10Gi subPath: rust-source + - name: buildah-storage + volumeClaimTemplate: + spec: + storageClassName: "local-path" + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + subPath: buildah-storage - name: cargo-cache persistentVolumeClaim: claimName: organic-cargo-cache-test-foreign-document diff --git a/docker/organic_test/Dockerfile b/docker/organic_test/Dockerfile index 814ffe0..a6da39c 100644 --- a/docker/organic_test/Dockerfile +++ b/docker/organic_test/Dockerfile @@ -19,7 +19,17 @@ RUN apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev FROM build AS build-emacs ARG EMACS_REPO ARG EMACS_VERSION -ADD "$EMACS_REPO#$EMACS_VERSION" /root/emacs + +RUN <