Add a mount for preserving the buildkit cache mounts between builds.

This commit is contained in:
Tom Alexander 2025-02-22 11:18:33 -05:00
parent a4af0cc906
commit 9027bcad76
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 9 additions and 1 deletions

View File

@ -123,7 +123,7 @@ spec:
- name: url
value: https://code.fizz.buzz/talexander/personal_tekton_catalog.git
- name: revision
value: 7ee31a185243ee6da13dcd26a592c585b64c80e5
value: ab59c05f093a0f86ced14bd153c18997b2ea269e
- name: pathInRepo
value: task/buildkit-rootless-daemonless/0.1/buildkit-rootless-daemonless.yaml
params:
@ -157,6 +157,8 @@ spec:
workspace: git-source
- name: dockerconfig
workspace: docker-credentials
- name: buildkit-cache
workspace: buildkit-cache-workspace
runAfter:
- fetch-repository
finally:
@ -221,6 +223,7 @@ spec:
workspaces:
- name: git-source
- name: docker-credentials
- name: buildkit-cache-workspace
workspaces:
- name: git-source
volumeClaimTemplate:
@ -235,6 +238,10 @@ spec:
- name: docker-credentials
secret:
secretName: harbor-plain
- name: buildkit-cache-workspace
persistentVolumeClaim:
claimName: homepage-staging-buildkitd-cache
subPath: homepage-staging-buildkitd-cache
params:
- name: image-name
value: "harbor.fizz.buzz/private/homepage-staging"

View File

@ -15,6 +15,7 @@ ADD https://code.fizz.buzz/talexander/organic_ast_explorer.git /organic_ast_expl
FROM scratch AS organic
ADD git@code.fizz.buzz:talexander/organic.git /organic
RUN sleep 9999999999999