Skip to content

Commit

Permalink
Update release pipelines
Browse files Browse the repository at this point in the history
Add Hub and Chains versions PARAM to release pipelien and
fetch component task

Signed-off-by: Nikhil Thomas <[email protected]>
  • Loading branch information
nikhil-thomas committed Mar 15, 2022
1 parent 0deaaab commit c58d4ae
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
16 changes: 16 additions & 0 deletions tekton/operator-release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ spec:
description: Version of TektonCD Results Release to be packaged with this operator build
# TODO: Set default to nightly. Aug 10, 2021 - no nightly releases available for Results
default: "latest"
- name: PACVersion
description: Version of Pipeline as Code (OpnenShift only)
default: "0.5.3"
- name: TektonCDChainsVersion
description: Version of TektonCD Chains Release to be packaged with this operator build
default: "nightly"
- name: TektonCDHubVersion
description: Version of TektonCD Hub Release to be packaged with this operator build
# TODO: Set default to nightly. Mar 09, 2022 - no nightly ("latest") releases available for Hub
default: "v1.7.0"
workspaces:
- name: workarea
description: The workspace where the repo will be cloned.
Expand Down Expand Up @@ -127,6 +137,12 @@ spec:
value: $(params.TektonCDDashboardVersion)
- name: RESULTS_VERSION
value: $(params.TektonCDResultsVersion)
- name: PAC_VERSION
value: $(params.PACVersion)
- name: HUB_VERSION
value: $(params.TektonCDHubVersion)
- name: CHAINS_VERSION
value: $(params.TektonCDChainsVersion)
- name: TARGET_PLATFORMS
value: $(params.kubeDistros)
- name: build-test
Expand Down
11 changes: 9 additions & 2 deletions tekton/task-fetch-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ spec:
- name: RESULTS_VERSION
description: Version of TektonCD Results being fetched
default: "latest"
- name: PAC_VERSION
description: Version of Pipeline as Code (OpnenShift only)
default: "0.5.3"
- name: CHAINS_VERSION
description: Version of TektonCD Chains being fetched
default: "latest"
- name: HUB_VERSION
description: Version of TektonCD Hub being fetched
default: "v1.7.0"
# TODO: Set default to nightly. Mar 09, 2022 - no nightly ("latest") releases available for Hub
- name: TARGET_PLATFORMS
description: Target platform for for which the payload is going to be used
default: "kubernetes openshift"
Expand All @@ -33,8 +40,8 @@ spec:
apk add bash # Bash is not present
for platform in $(params.TARGET_PLATFORMS); do
echo "Fetching Tekton components for ${platform} build"
./hack/fetch-releases.sh ${platform} $(params.PIPELINES_VERSION) $(params.TRIGGERS_VERSION) $(params.DASHBOARD_VERSION) $(params.RESULTS_VERSION) $(params.CHAINS_VERSION)
./hack/fetch-releases.sh ${platform} $(params.PIPELINES_VERSION) $(params.TRIGGERS_VERSION) $(params.DASHBOARD_VERSION) $(params.RESULTS_VERSION) $(params.PAC_VERSION) $(params.HUB_VERSION) $(params.CHAINS_VERSION)
[[ "$?" != 0 ]] && exit 1
# print directory structure of cmd/<platform>/operator/kodata
find cmd/${platform}/operator/kodata/
done
Expand Down

0 comments on commit c58d4ae

Please sign in to comment.