From 6cdc78f0861de3ccb0d91c23bb0a4ca4665959f6 Mon Sep 17 00:00:00 2001 From: Kartik Shah Date: Tue, 16 Apr 2024 21:29:49 +0530 Subject: [PATCH 1/2] ci: use kaniko builder --- ci/pipeline.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 73686f41..45f8c353 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -181,17 +181,26 @@ jobs: image_resource: type: registry-image source: - repository: vito/oci-build-task + repository: gcr.io/kaniko-project/executor + tag: debug inputs: - name: repo outputs: - name: image - params: - CONTEXT: repo - BUILD_ARGS_FILE: repo/.env - DOCKERFILE: "repo/Dockerfile.release" run: - path: build + path: /bin/sh + args: + - -exc + - | + /kaniko/executor \ + --dockerfile=repo/Dockerfile.release \ + --context=repo \ + $(awk -F= '{print "--build-arg="$1"="$2}' repo/.env) \ + --use-new-run \ + --single-snapshot \ + --cache=false \ + --no-push \ + --tar-path=image/image.tar - put: latest-image params: image: image/image.tar From 3941840f242b75ca392281856bca9101653b6b67 Mon Sep 17 00:00:00 2001 From: Kartik Shah Date: Tue, 16 Apr 2024 21:32:38 +0530 Subject: [PATCH 2/2] ci: remove privileged flag --- ci/pipeline.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 45f8c353..409fe26d 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -175,7 +175,6 @@ jobs: run: path: pipeline-tasks/ci/vendor/tasks/docker-prep-docker-build-env.sh - task: build - privileged: true config: platform: linux image_resource: