File tree 3 files changed +9
-19
lines changed
3 files changed +9
-19
lines changed Original file line number Diff line number Diff line change 14
14
workspaces :
15
15
- name : source
16
16
- name : registry
17
- # - name: container-storage
18
- # mountPath: /var/lib/containers
17
+ - name : container-storage
18
+ mountPath : /var/lib/containers
19
19
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"
29
20
- name : build
30
21
image : quay.io/buildah/stable:latest
31
22
imagePullPolicy : IfNotPresent
34
25
privileged : true
35
26
env :
36
27
- name : STORAGE_DRIVER
37
- value : vfs
28
+ value : overlay
38
29
script : |
39
30
#!/bin/sh
40
31
set -e
Original file line number Diff line number Diff line change @@ -326,8 +326,8 @@ spec:
326
326
workspace : source
327
327
- name : registry
328
328
workspace : registry-secret
329
- # - name: container-storage
330
- # workspace: container-storage
329
+ - name : container-storage
330
+ workspace : container-storage
331
331
332
332
- name : vulnerability-scan
333
333
when :
@@ -608,10 +608,9 @@ spec:
608
608
name : noop-task
609
609
610
610
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
615
614
- name : source
616
615
volumeClaimTemplate :
617
616
spec :
Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ buildah-build: check-builder load-version-json ## Build and push image (multi-ar
452
452
for arch in amd64; do \
453
453
ARCH_TAG=$$ FINAL_TAG-$$ arch; \
454
454
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; \
456
456
echo " 🚀 Pushing image: $( IMG) -$$ arch" ; \
457
457
buildah push $(IMG ) -$$ arch docker://$(IMG ) -$$ arch || exit 1; \
458
458
done ; \
You can’t perform that action at this time.
0 commit comments