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