Skip to content

Commit

Permalink
update kaniko task
Browse files Browse the repository at this point in the history
  • Loading branch information
freeliuzc committed May 24, 2022
1 parent 99d93bf commit 31fadb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tekton/tasks/kaniko/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@ spec:
cd $(workspaces.source.path)/$(params.CONTEXT)
echo "context ls: `ls`"
echo "dockerfile: $(workspaces.source.path)/$(params.CONTEXT)/$(params.DOCKERFILE)"
echo "destination: $(params.IMAGE)"
echo "destination1: $(params.IMAGE_BAIDU)"
echo "destination2: $(params.IMAGE)"
- name: build-and-push
workingDir: $(workspaces.source.path)
image: $(params.BUILDER_IMAGE)
args:
- $(params.EXTRA_ARGS)
- --dockerfile=$(params.DOCKERFILE)
- --context=$(workspaces.source.path)/$(params.CONTEXT) # The user does not need to care the workspace and the source.
- --destination=$(params.IMAGE)
- --destination=$(params.IMAGE_BAIDU)
- --destination=$(params.IMAGE)
- --cache=true
- --cache-dir=$(workspaces.cache.path)
- --digest-file=$(results.IMAGE_DIGEST.path)
Expand Down

0 comments on commit 31fadb2

Please sign in to comment.