Use resolvers for tasks.
All checks were successful
build-homepage-staging Build build-homepage-staging has succeeded

This commit is contained in:
Tom Alexander 2023-12-23 17:49:07 -05:00
parent 3ebe169ee9
commit 3c2cff0cef
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -37,7 +37,14 @@ spec:
echo -n "$(date +%s)" | tee $(results.unix-time.path) echo -n "$(date +%s)" | tee $(results.unix-time.path)
- name: report-pending - name: report-pending
taskRef: taskRef:
name: gitea-set-status resolver: git
params:
- name: url
value: https://github.com/tektoncd/catalog.git
- name: revision
value: df36b3853a5657fd883015cdbf07ad6466918acf
- name: pathInRepo
value: task/gitea-set-status/0.1/gitea-set-status.yaml
runAfter: runAfter:
- fetch-repository - fetch-repository
params: params:
@ -57,7 +64,14 @@ spec:
value: "https://tekton.fizz.buzz/#/namespaces/$(context.pipelineRun.namespace)/pipelineruns/$(context.pipelineRun.name)" value: "https://tekton.fizz.buzz/#/namespaces/$(context.pipelineRun.namespace)/pipelineruns/$(context.pipelineRun.name)"
- name: fetch-repository - name: fetch-repository
taskRef: taskRef:
name: git-clone resolver: git
params:
- name: url
value: https://github.com/tektoncd/catalog.git
- name: revision
value: df36b3853a5657fd883015cdbf07ad6466918acf
- name: pathInRepo
value: task/git-clone/0.9/git-clone.yaml
workspaces: workspaces:
- name: output - name: output
workspace: git-source workspace: git-source
@ -70,7 +84,14 @@ spec:
value: "true" value: "true"
- name: build-image - name: build-image
taskRef: taskRef:
name: kaniko resolver: git
params:
- name: url
value: https://github.com/tektoncd/catalog.git
- name: revision
value: df36b3853a5657fd883015cdbf07ad6466918acf
- name: pathInRepo
value: task/kaniko/0.6//kaniko.yaml
params: params:
- name: IMAGE - name: IMAGE
value: "$(params.image-name):$(tasks.get-time.results.unix-time)" value: "$(params.image-name):$(tasks.get-time.results.unix-time)"
@ -107,7 +128,14 @@ spec:
operator: in operator: in
values: ["Succeeded", "Completed"] values: ["Succeeded", "Completed"]
taskRef: taskRef:
name: gitea-set-status resolver: git
params:
- name: url
value: https://github.com/tektoncd/catalog.git
- name: revision
value: df36b3853a5657fd883015cdbf07ad6466918acf
- name: pathInRepo
value: task/gitea-set-status/0.1/gitea-set-status.yaml
params: params:
- name: CONTEXT - name: CONTEXT
value: "$(params.JOB_NAME)" value: "$(params.JOB_NAME)"
@ -129,7 +157,14 @@ spec:
operator: in operator: in
values: ["Failed"] values: ["Failed"]
taskRef: taskRef:
name: gitea-set-status resolver: git
params:
- name: url
value: https://github.com/tektoncd/catalog.git
- name: revision
value: df36b3853a5657fd883015cdbf07ad6466918acf
- name: pathInRepo
value: task/gitea-set-status/0.1/gitea-set-status.yaml
params: params:
- name: CONTEXT - name: CONTEXT
value: "$(params.JOB_NAME)" value: "$(params.JOB_NAME)"