Skip to content

Commit

Permalink
Workaround for Kaniko problem with multi-stage-builds in KinD
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Aug 15, 2022
1 parent 6b8c47a commit 8b7bbba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ spec:
- --dockerfile=$(build.dockerfile)
- --context=$(params.shp-source-context)
- --destination=$(params.shp-output-image)
# https://github.com/GoogleContainerTools/kaniko/issues/2164
- --ignore-path=/product_uuid
- --oci-layout-path=/kaniko/oci-image-layout
- --snapshotMode=redo
- --no-push
Expand Down
2 changes: 2 additions & 0 deletions samples/buildstrategy/kaniko/buildstrategy_kaniko_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
- --dockerfile=$(build.dockerfile)
- --context=$(params.shp-source-context)
- --destination=$(params.shp-output-image)
# https://github.com/GoogleContainerTools/kaniko/issues/2164
- --ignore-path=/product_uuid
- --oci-layout-path=/kaniko/oci-image-layout
- --snapshotMode=redo
- --push-retry=3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
- '--dockerfile=/gen-source/Dockerfile.gen'
- '--context=/gen-source'
- '--destination=$(params.shp-output-image)'
# https://github.com/GoogleContainerTools/kaniko/issues/2164
- --ignore-path=/product_uuid
- '--oci-layout-path=/kaniko/oci-image-layout'
- '--snapshotMode=redo'
- '--push-retry=3'
Expand Down

0 comments on commit 8b7bbba

Please sign in to comment.