From 275bf42f7dcaee83d56869c46da7b4127b9f2336 Mon Sep 17 00:00:00 2001 From: Nikhil Thomas Date: Mon, 12 Apr 2021 11:37:31 +0530 Subject: [PATCH] Add separate interceptors file result to release pipeline Add separate `interceptors-file` result to release pipeline, as interceptors file is now seprate release artifact. ref: https://github.com/tektoncd/triggers/pull/1007 Signed-off-by: Nikhil Thomas --- tekton/release-cheat-sheet.md | 3 +++ tekton/release-pipeline.yaml | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tekton/release-cheat-sheet.md b/tekton/release-cheat-sheet.md index c26b51387..3b52ebe98 100644 --- a/tekton/release-cheat-sheet.md +++ b/tekton/release-cheat-sheet.md @@ -136,11 +136,14 @@ the triggers repo, a terminal window and a text editor. ```bash # Test latest kubectl --context my-dev-cluster apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml + kubectl --context my-dev-cluster apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml ``` ```bash # Test backport kubectl --context my-dev-cluster apply --filename https://storage.googleapis.com/tekton-releases/triggers/previous/v0.12.1/release.yaml + # NOTE: Some older releases might not have a separate interceptors.yaml as they used to be bundled in release.yaml + kubectl --context my-dev-cluster apply --filename https://storage.googleapis.com/tekton-releases/triggers/previous/v0.12.1/interceptors.yaml ``` 1. Announce the release in Slack channels #general, #trigers and #announcements. diff --git a/tekton/release-pipeline.yaml b/tekton/release-pipeline.yaml index 757f4b8e4..9848477dc 100644 --- a/tekton/release-pipeline.yaml +++ b/tekton/release-pipeline.yaml @@ -44,6 +44,12 @@ spec: - name: release-file-no-tag description: the URL of the release file value: $(tasks.report-bucket.results.release-no-tag) + - name: interceptors-file + description: the URL of the interceptors release file + value: $(tasks.report-bucket.results.interceptors) + - name: interceptors-file-no-tag + description: the URL of the interceptors release file + value: $(tasks.report-bucket.results.interceptors-no-tag) tasks: - name: git-clone taskRef: @@ -177,9 +183,13 @@ spec: - name: versionTag results: - name: release - description: The full URL of the release file in the bucket + description: The full URL of the main release file in the bucket - name: release-no-tag - description: The full URL of the release file (no tag) in the bucket + description: The full URL of the main release file (no tag) in the bucket + - name: interceptors + description: The full URL of the interceptors release file in the bucket + - name: interceptors-no-tag + description: The full URL of the interceptors file (no tag) in the bucket steps: - name: create-results image: alpine @@ -188,4 +198,6 @@ spec: # If the bucket is in the gs:// return the corresponding public https URL BASE_URL=$(echo ${BASE_URL} | sed 's,gs://,https://storage.googleapis.com/,g') echo "${BASE_URL}/release.yaml" > $(results.release.path) - echo "${BASE_URL}/release.notag.yaml" > $(results.release-no-tag.path) \ No newline at end of file + echo "${BASE_URL}/release.notag.yaml" > $(results.release-no-tag.path) + echo "${BASE_URL}/interceptors.yaml" > $(results.interceptors.path) + echo "${BASE_URL}/interceptors.notag.yaml" > $(results.interceptors-no-tag.path) \ No newline at end of file