Skip to content

Commit

Permalink
ci: use kaniko builder (#554)
Browse files Browse the repository at this point in the history
* ci: use kaniko builder

* ci: remove privileged flag
  • Loading branch information
krtk6160 authored Apr 30, 2024
1 parent c6eb71e commit 6bf661f
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,31 @@ jobs:
run:
path: pipeline-tasks/ci/vendor/tasks/docker-prep-docker-build-env.sh
- 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: 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
Expand Down

0 comments on commit 6bf661f

Please sign in to comment.