Skip to content

Commit

Permalink
fix(apps/prod/tekton/configs/triggers): fix trigger `git-push-pingcap…
Browse files Browse the repository at this point in the history
…-qe-artifacts` (#1115)

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Apr 23, 2024
1 parent 4a6aac4 commit e2cd279
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ spec:
params:
- name: SCRIPT
value: |
url="$(tt.params.git-url)"
org=${url#https://github.com/}
org=${org%/*}
repo=${url##*/}
repo=${repo%.git}
branch="$(tt.params.git-ref)"
echo "Downloading from: https://github.com/${org}/${repo}/archive/${branch}.zip"
wget "https://github.com/${org}/${repo}/archive/${branch}.zip" -O - | unzip -
ks3util sync "${repo}-${branch}" ks3://ee-fileserver/download/raw.githubusercontent.com/${org}/${repo}/${branch}
Expand Down

0 comments on commit e2cd279

Please sign in to comment.