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

Add separate interceptors file result to release pipeline #1044

Merged
merged 1 commit into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions tekton/release-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
18 changes: 15 additions & 3 deletions tekton/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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)
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)