From 7849a5c064f5a4c7e3567ebcd0a2b46c92181dbb Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 13 Jul 2023 22:19:31 -0400 Subject: [PATCH] Add a shared cargo cache to the rust test pipeline. This is to be a better citizen by not constantly hammering github for the dependencies. --- .lighthouse/pipeline-rust-test.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.lighthouse/pipeline-rust-test.yaml b/.lighthouse/pipeline-rust-test.yaml index 4963e9e..9a9582f 100644 --- a/.lighthouse/pipeline-rust-test.yaml +++ b/.lighthouse/pipeline-rust-test.yaml @@ -106,6 +106,8 @@ spec: workspaces: - name: source workspace: git-source + - name: cargo-cache + workspace: cargo-cache runAfter: - build-image params: @@ -163,6 +165,7 @@ spec: workspaces: - name: git-source - name: docker-credentials + - name: cargo-cache workspaces: - name: git-source volumeClaimTemplate: @@ -174,6 +177,9 @@ spec: requests: storage: 10Gi subPath: rust-source + - name: cargo-cache + persistentVolumeClaim: + claimName: cargo-cache - name: docker-credentials secret: secretName: harbor-plain