fix(ci): align API build with rootless BuildKit
This commit is contained in:
1 parent
2ed6b93bbe
commit
f05f0f2af9
2 files changed
+6
-5
No files matched your search
@@ -131,6 +131,9 @@ spec:
|
|||||||
- name: source
|
- name: source
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: buildkit-state
|
||||||
|
emptyDir: {}
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: docker.io/moby/buildkit:v0.31.1-rootless@sha256:946cf909534b789c9b84af75e6d4f8cb23c3b9cb387daec5ba0f4878a3e4647c
|
image: docker.io/moby/buildkit:v0.31.1-rootless@sha256:946cf909534b789c9b84af75e6d4f8cb23c3b9cb387daec5ba0f4878a3e4647c
|
||||||
@@ -148,7 +151,9 @@ spec:
|
|||||||
type: Unconfined
|
type: Unconfined
|
||||||
appArmorProfile:
|
appArmorProfile:
|
||||||
type: Unconfined
|
type: Unconfined
|
||||||
procMount: Unmasked
|
volumeMounts:
|
||||||
|
- name: buildkit-state
|
||||||
|
mountPath: /home/user/.local/share/buildkit
|
||||||
env:
|
env:
|
||||||
- name: BUILDKITD_FLAGS
|
- name: BUILDKITD_FLAGS
|
||||||
value: --oci-worker-no-process-sandbox
|
value: --oci-worker-no-process-sandbox
|
||||||
|
|||||||
@@ -36,10 +36,6 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
taskRunSpecs:
|
|
||||||
- pipelineTaskName: build-api
|
|
||||||
podTemplate:
|
|
||||||
hostUsers: false
|
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: source
|
- name: source
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
|
|||||||
Reference in new issue
Block a user