Skip to content

Commit

Permalink
chore(apps/prod/tekton/configs/pipelines): add fake wait image delive…
Browse files Browse the repository at this point in the history
…ry task in ga release flow

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Jul 11, 2024
1 parent 5d4c5e3 commit 16c50fa
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions apps/prod/tekton/configs/pipelines/pingcap-release-ga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,15 @@ spec:
# force add the tag on repos:
# ./tag-rc2ga-on-repos.sh "$rc_ver" "$ga_ver" "$registry" true
./tag-rc2ga-on-repos.sh "$rc_ver" "$ga_ver" "$registry"
- name: wait-tiup-delivery
runAfter:
- "ga-tag-oci-artifacts"
params:
- name: rc-version
value: "$(params.version)-pre"
- name: ga-version
- name: version
value: $(params.version)
taskSpec:
params:
- name: rc-version
- name: ga-version
- name: tiup-tool-version
default: "v1.14.1"
- name: version
steps:
- name: wait
image: ghcr.io/pingcap-qe/cd/utils/release:v20240325-60-gb6f8928
Expand All @@ -67,18 +61,7 @@ spec:
#! /usr/bin/env bash
set -exo pipefail
# install tiup tool.
TIUP_HOME=~/.tiup
bin_dir=$TIUP_HOME/bin
mkdir -vp "$bin_dir"
ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64)
download_url=https://tiup-mirrors.pingcap.com/tiup-$(params.tiup-tool-version)-linux-${ARCH}.tar.gz
wget -q -O - "$download_url" | tar -zxvf - -C "$bin_dir"
chmod 755 "$bin_dir/tiup"
export PATH=$bin_dir:$PATH
which tiup
tiup_check_ver="$(params.ga-version)"
tiup_check_ver="$(params.version)"
tiup_mirror="http://tiup.pingcap.net:8987"
oci_registry="hub.pingcap.net"
Expand All @@ -101,6 +84,21 @@ spec:
cat results.yaml || true
- name: wait-image-delivery
runAfter:
- ga-tag-oci-artifacts
params:
- name: version
value: $(params.version)
taskSpec:
params:
- name: version
steps:
- name: wait
image: ghcr.io/pingcap-qe/cd/utils/release:v20240325-60-gb6f8928
script: |
check_ver="$(params.version)"
echo "🤷 This step is not implement yet."
- name: compose-offline-pkgs-amd64-community
runAfter: [wait-tiup-delivery]
taskRef: { name: pingcap-compose-offline-pkgs }
Expand Down

0 comments on commit 16c50fa

Please sign in to comment.