Skip to content

Commit

Permalink
[pipelines/push-disk-images-to-cdn] add update-cr-status
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Dec 1, 2024
1 parent fe8d948 commit 0905bd2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pipelines/push-disk-images-to-cdn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Tekton Pipeline to push disk images to a cdn using pulp
| taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git |
| taskGitRevision | The revision in the taskGitUrl repo to be used | No | - |

## Changes in 1.2.0
* Add the task `update-cr-status` at the end of the pipeline to save all pipeline results

## Changes in 1.1.0
* Add new reduce-snapshot task

Expand Down
22 changes: 21 additions & 1 deletion pipelines/push-disk-images-to-cdn/push-disk-images-to-cdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pipeline
metadata:
name: push-disk-images-to-cdn
labels:
app.kubernetes.io/version: "1.1.0"
app.kubernetes.io/version: "1.2.0"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand Down Expand Up @@ -235,6 +235,26 @@ spec:
workspace: release-workspace
runAfter:
- check-data-keys
- name: update-cr-status
params:
- name: resource
value: $(params.release)
- name: resultsDirPath
value: $(tasks.collect-data.results.resultsDir)
taskRef:
resolver: "git"
params:
- name: url
value: $(params.taskGitUrl)
- name: revision
value: $(params.taskGitRevision)
- name: pathInRepo
value: tasks/update-cr-status/update-cr-status.yaml
workspaces:
- name: data
workspace: release-workspace
runAfter:
- push-disk-images
finally:
- name: cleanup
taskRef:
Expand Down

0 comments on commit 0905bd2

Please sign in to comment.