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 support for specifying tag to installer script used for releases #2233

Merged
merged 1 commit into from
Nov 9, 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
1 change: 1 addition & 0 deletions docs/dev/installer.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Accepted options:
[--platform <platform>] Override the platform to build for
[--read-only] Will build manifests for a readonly deployment
[--stream-logs false] Will disable log streaming and use polling instead
[--tag <tag>] Tag used for the image produced by ko
[--tenant-namespace <namespace>] Will limit the visibility to the specified namespace only
[--triggers-namespace <namespace>] Override the namespace where Tekton Triggers is installed (defaults to tekton-pipelines)
[--version <version>] Will download manifests for specified version or build everything using kustomize/ko
Expand Down
7 changes: 6 additions & 1 deletion scripts/installer
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ help () {
echo -e "\t[--pipelines-namespace <namespace>]\tOverride the namespace where Tekton Pipelines is installed (defaults to tekton-pipelines)"
echo -e "\t[--platform <platform>]\t\t\tOverride the platform to build for"
echo -e "\t[--read-only]\t\t\t\tWill build manifests for a readonly deployment"
echo -e "\t[--stream-logs false]\t\t\t\tWill disable log streaming and use polling instead"
echo -e "\t[--stream-logs false]\t\t\tWill disable log streaming and use polling instead"
echo -e "\t[--tag <tag>]\t\t\t\tTag used for the image produced by ko"
echo -e "\t[--tenant-namespace <namespace>]\tWill limit the visibility to the specified namespace only"
echo -e "\t[--triggers-namespace <namespace>]\tOverride the namespace where Tekton Triggers is installed (defaults to tekton-pipelines)"
echo -e "\t[--version <version>]\t\t\tWill download manifests for specified version or build everything using kustomize/ko"
Expand Down Expand Up @@ -519,6 +520,10 @@ while [[ $# -gt 0 ]]; do
shift
KO_RESOLVE_OPTIONS="$KO_RESOLVE_OPTIONS --platform=${1}"
;;
'--tag')
shift
KO_RESOLVE_OPTIONS="$KO_RESOLVE_OPTIONS -t ${1}"
;;
*)
echo "ERROR: Unknown option $1"
help
Expand Down