Skip to content
Snippets Groups Projects
Commit b5a29725 authored by Jason Zaman's avatar Jason Zaman
Browse files

Remove workspace base path from kaniko task

parent 513727e9
Branches
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ spec: ...@@ -24,7 +24,7 @@ spec:
- name: dockerfile - name: dockerfile
value: Dockerfile value: Dockerfile
- name: context-path - name: context-path
value: /workspace/workspace/webhook value: webhook
resources: resources:
inputs: inputs:
...@@ -42,7 +42,7 @@ spec: ...@@ -42,7 +42,7 @@ spec:
- name: dockerfile - name: dockerfile
value: Dockerfile.linux.cpu value: Dockerfile.linux.cpu
- name: context-path - name: context-path
value: /workspace/workspace/images value: images
resources: resources:
inputs: inputs:
......
...@@ -29,7 +29,7 @@ spec: ...@@ -29,7 +29,7 @@ spec:
default: Dockerfile default: Dockerfile
- name: context-path - name: context-path
description: The build context used by Kaniko (https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts) description: The build context used by Kaniko (https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts)
default: /workspace/workspace/images default: ./
outputs: outputs:
resources: resources:
...@@ -40,9 +40,9 @@ spec: ...@@ -40,9 +40,9 @@ spec:
- name: build-and-push - name: build-and-push
image: gcr.io/kaniko-project/executor:v0.15.0 image: gcr.io/kaniko-project/executor:v0.15.0
args: args:
- --dockerfile=$(inputs.params.context-path)/$(inputs.params.dockerfile) - --dockerfile=$(inputs.params.dockerfile)
- --destination=$(outputs.resources.built-image.url) - --destination=$(outputs.resources.built-image.url)
- --context=$(inputs.params.context-path) - --context=/workspace/workspace/$(inputs.params.context-path)
- --oci-layout-path=$(inputs.resources.built-image.path) - --oci-layout-path=$(inputs.resources.built-image.path)
- --reproducible - --reproducible
env: env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment