Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: reenable kaniko builder #4429

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions ci/apps/app-template.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,30 @@ plan:
run:
path: pipeline-tasks/ci/apps/tasks/prepare-docker-build.sh
- task: build
#@ def build_args(app):
#@ dockerfile_path = "repo/apps/" + app + "/Dockerfile"
#@ build_args_command = "$(awk -F= '{print \"--build-arg=\"$1\"=\"$2}' repo/.build-args)"
#@ kaniko_args="/kaniko/executor --context=repo --use-new-run --single-snapshot --cache=false --no-push --tar-path=image/image.tar --dockerfile=" + dockerfile_path + " " + build_args_command
#@ args = ["-exc"]
#@ args.append(kaniko_args)
#@ return args
#@ end
tags: ["kaniko"]
attempts: 2
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
DOCKERFILE: #@ "repo/apps/" + app + "/Dockerfile"
BUILD_ARGS_FILE: repo/.build-args
run:
path: build
path: /bin/sh
args: #@ build_args(app)
- put: #@ edge_image_resource_name(app)
params:
image: image/image.tar
Expand Down
20 changes: 13 additions & 7 deletions ci/core/template.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,24 +205,30 @@ plan:
run:
path: pipeline-tasks/ci/core/tasks/prepare-docker-build.sh
- task: build
#@ def build_args(component):
#@ dockerfile_path = "repo/core/" + component + "/Dockerfile" + post_fix
#@ build_args_command = "$(awk -F= '{print \"--build-arg=\"$1\"=\"$2}' repo/.build-args)"
#@ kaniko_args="/kaniko/executor --context=repo --use-new-run --single-snapshot --cache=false --no-push --tar-path=image/image.tar --dockerfile=" + dockerfile_path + " " + build_args_command
#@ args = ["-exc"]
#@ args.append(kaniko_args)
#@ return args
#@ end
tags: ["kaniko"]
attempts: 2
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
DOCKERFILE: #@ "repo/core/" + component + "/Dockerfile" + post_fix
BUILD_ARGS_FILE: repo/.build-args
run:
path: build
path: /bin/sh
args: #@ build_args(component)
- put: #@ edge_image_resource_name(component + post_fix)
params:
image: image/image.tar
Expand Down
Loading