Skip to content

Commit

Permalink
Bring Kaniko version and arguments in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 authored and qu1queee committed Oct 9, 2020
1 parent 7c5ae6f commit d93cf57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/controller/buildrun/runtime_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func runtimeBuildAndPushStep(b *buildv1alpha1.Build, kanikoImage string) *v1beta
fmt.Sprintf("--context=%x", path.Join(workspaceDir, contextDir)),
fmt.Sprintf("--destination=%s", b.Spec.Output.ImageURL),
"--snapshotMode=redo",
"--oci-layout-path=/workspace/output/image",
},
}
return &v1beta1.Step{Container: container}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ spec:
- '--dockerfile=/gen-source/Dockerfile.gen'
- '--context=/gen-source'
- '--destination=$(build.output.image)'
- '--oci-layout-path=/workspace/output/image'
- '--snapshotMode=redo'
command:
- /kaniko/executor
env:
- name: DOCKER_CONFIG
value: /tekton/home/.docker
image: 'gcr.io/kaniko-project/executor:v0.19.0'
image: gcr.io/kaniko-project/executor:v1.0.0
name: step-build-and-push
securityContext:
runAsUser: 0
Expand Down

0 comments on commit d93cf57

Please sign in to comment.