From 2e427526a491cdf2606114c8191bcf344067338e Mon Sep 17 00:00:00 2001 From: Kartik Shah Date: Wed, 17 Apr 2024 03:33:35 +0530 Subject: [PATCH] ci: use kaniko builder --- ci/gcp.lib.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ci/gcp.lib.yml b/ci/gcp.lib.yml index f5a44bf9..5b08814c 100644 --- a/ci/gcp.lib.yml +++ b/ci/gcp.lib.yml @@ -371,21 +371,26 @@ serial: true plan: - {get: gcp-pipeline-image-def, trigger: true} - task: build - privileged: true config: platform: linux image_resource: type: registry-image source: - repository: vito/oci-build-task + repository: gcr.io/kaniko-project/executor + tag: debug inputs: - name: gcp-pipeline-image-def outputs: - name: image - params: - CONTEXT: gcp-pipeline-image-def/ci/image/gcp run: - path: build + path: /kaniko/executor + args: + - --context=gcp-pipeline-image-def/ci/image/gcp + - --use-new-run + - --single-snapshot + - --cache=false + - --no-push + - --tar-path=image/image.tar - put: gcp-pipeline-image params: image: image/image.tar