fix(ci): let non-root clone create build source directory

This commit is contained in:
dahyeon committed 2026-11-04 05:45:29 +09:00
1 parent 17e90dae80
commit 0108a18e9c
1 file changed
+2 -3
+2 -3
View File
@@ -213,7 +213,6 @@ spec:
test "$(git -C /workspace/build/source rev-parse HEAD)" = "$REVISION" test "$(git -C /workspace/build/source rev-parse HEAD)" = "$REVISION"
- 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
workingDir: /workspace/build/source
computeResources: computeResources:
requests: requests:
cpu: "1" cpu: "1"
@@ -260,8 +259,8 @@ spec:
esac esac
buildctl-daemonless.sh build \ buildctl-daemonless.sh build \
--frontend dockerfile.v0 \ --frontend dockerfile.v0 \
--local context=. \ --local context=/workspace/build/source \
--local dockerfile=. \ --local dockerfile=/workspace/build/source \
--opt filename=Dockerfile \ --opt filename=Dockerfile \
--opt "platform=$PLATFORM" \ --opt "platform=$PLATFORM" \
--output "type=image,name=$IMAGE,push=true" \ --output "type=image,name=$IMAGE,push=true" \