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

Update release pipelines #678

Merged
merged 2 commits into from
Apr 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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)
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
default: "0.5.3"
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
- 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"
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
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)
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
default: "0.5.3"
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
- 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"
vdemeester marked this conversation as resolved.
Show resolved Hide resolved
# 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