fix(ci): let non-root clone create build source directory
This commit is contained in:
1 parent
17e90dae80
commit
0108a18e9c
1 file changed
+2
-3
@@ -213,7 +213,6 @@ spec:
|
||||
test "$(git -C /workspace/build/source rev-parse HEAD)" = "$REVISION"
|
||||
- name: build-and-push
|
||||
image: docker.io/moby/buildkit:v0.31.1-rootless@sha256:946cf909534b789c9b84af75e6d4f8cb23c3b9cb387daec5ba0f4878a3e4647c
|
||||
workingDir: /workspace/build/source
|
||||
computeResources:
|
||||
requests:
|
||||
cpu: "1"
|
||||
@@ -260,8 +259,8 @@ spec:
|
||||
esac
|
||||
buildctl-daemonless.sh build \
|
||||
--frontend dockerfile.v0 \
|
||||
--local context=. \
|
||||
--local dockerfile=. \
|
||||
--local context=/workspace/build/source \
|
||||
--local dockerfile=/workspace/build/source \
|
||||
--opt filename=Dockerfile \
|
||||
--opt "platform=$PLATFORM" \
|
||||
--output "type=image,name=$IMAGE,push=true" \
|
||||
|
||||
Reference in new issue
Block a user