Skip to content

Commit a7fe015

Browse files
committed
trying vpc file as cache
1 parent f9f5c0c commit a7fe015

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

.tekton/buildah-build.yaml

+3-12
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,9 @@ spec:
1414
workspaces:
1515
- name: source
1616
- name: registry
17-
# - name: container-storage
18-
# mountPath: /var/lib/containers
17+
- name: container-storage
18+
mountPath: /var/lib/containers
1919
steps:
20-
# - name: setup-qemu
21-
# image: us.icr.io/ibm-hc4ai-operator/qemu-user-static:latest
22-
# imagePullPolicy: IfNotPresent
23-
# securityContext:
24-
# privileged: true
25-
# script: |
26-
# #!/bin/sh
27-
# echo "⚙️ Attempting QEMU registration..."
28-
# /register || echo "ℹ️ Skipping errors – QEMU might already be registered"
2920
- name: build
3021
image: quay.io/buildah/stable:latest
3122
imagePullPolicy: IfNotPresent
@@ -34,7 +25,7 @@ spec:
3425
privileged: true
3526
env:
3627
- name: STORAGE_DRIVER
37-
value: vfs
28+
value: overlay
3829
script: |
3930
#!/bin/sh
4031
set -e

.tekton/pipelinerun.yaml

+5-6
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ spec:
326326
workspace: source
327327
- name: registry
328328
workspace: registry-secret
329-
# - name: container-storage
330-
# workspace: container-storage
329+
- name: container-storage
330+
workspace: container-storage
331331

332332
- name: vulnerability-scan
333333
when:
@@ -608,10 +608,9 @@ spec:
608608
name: noop-task
609609

610610
workspaces:
611-
# - name: container-storage
612-
# persistentVolumeClaim:
613-
# claimName: build-cache-cos
614-
# # claimName: buildah-cache-pvc1
611+
- name: container-storage
612+
persistentVolumeClaim:
613+
claimName: buildah-cache1
615614
- name: source
616615
volumeClaimTemplate:
617616
spec:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ buildah-build: check-builder load-version-json ## Build and push image (multi-ar
452452
for arch in amd64; do \
453453
ARCH_TAG=$$FINAL_TAG-$$arch; \
454454
echo "📦 Building for architecture: $$arch"; \
455-
buildah build --arch=$$arch --os=linux --layers --cache-from=$(IMAGE_TAG_BASE) --cache-to=$(IMAGE_TAG_BASE) -t $(IMG)-$$arch . || exit 1; \
455+
buildah build --arch=$$arch --os=linux --layers -t $(IMG)-$$arch . || exit 1; \
456456
echo "🚀 Pushing image: $(IMG)-$$arch"; \
457457
buildah push $(IMG)-$$arch docker://$(IMG)-$$arch || exit 1; \
458458
done; \

0 commit comments

Comments
 (0)