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

Update pipelinerun.yaml #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
46 changes: 25 additions & 21 deletions .tekton/pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ spec:
value: "{{ repo_url }}"
- name: revision
value: "{{ revision }}"
- name: source_branch
value: "{{ source_branch }}"
- name: registry
value: quay.io/savitaashture
pipelineSpec:
params:
- name: repo_url
- name: revision
- name: source_branch
- name: registry
workspaces:
- name: source
Expand All @@ -60,12 +63,30 @@ spec:
value: $(params.repo_url)
- name: revision
value: $(params.revision)
- name: build-and-push-image
taskRef:
name: kaniko
runAfter:
- fetch-repository
workspaces:
- name: output
workspace: source
- name: basic-auth
workspace: basic-auth
- name: dockerconfig
workspace: dockerconfig
params:
- name: IMAGE
value: $(params.registry)/kaniko-chains:$(params.source_branch)
- name: EXTRA_ARGS
value:
- --skip-tls-verify
# Customize this task if you like, or just do a taskRef
# to one of the hub task.
- name: noop-task
displayName: Task with no effect
runAfter:
- fetch-repository
- build-and-push-image
workspaces:
- name: source
workspace: source
Expand All @@ -78,26 +99,9 @@ spec:
workingDir: $(workspaces.source.path)
script: |
echo "what is revision"
echo $(params.revision)
exit 0
- name: build-and-push-image
taskRef:
name: kaniko
runAfter:
- fetch-repository
workspaces:
- name: output
workspace: source
- name: basic-auth
workspace: basic-auth
- name: dockerconfig
workspace: dockerconfig
params:
- name: IMAGE
value: $(params.registry)/kaniko-chains:$(params.revision)
- name: EXTRA_ARGS
value:
- --skip-tls-verify
echo $(params.source_branch)
echo $(tasks.build-and-push-image.results.IMAGE_DIGEST)
exit 0
workspaces:
- name: source
volumeClaimTemplate:
Expand Down