Skip to content

Commit

Permalink
cherry pick #3502 to release-1.1 (#3503)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>

Co-authored-by: DanielZhangQD <[email protected]>
  • Loading branch information
ti-srebot and DanielZhangQD authored Nov 14, 2020
1 parent 14b3e34 commit 8b99780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/upload-binaries-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ EOF

echo "info: uploading charts and binaries"
tar -zcvf $dir/tidb-operator.tar.gz images/tidb-operator images/tidb-backup-manager charts
$dir/linux64/filemgr-linux64 --config $dir/linux64/config.cfg --action mput --bucket ${UCLOUD_UFILE_BUCKET} --nobar --key builds/pingcap/operator/${GITHASH}/centos7/tidb-operator.tar.gz --file $dir/tidb-operator.tar.gz
$dir/linux64/filemgr-linux64 --config $dir/config.cfg --action mput --bucket ${UCLOUD_UFILE_BUCKET} --nobar --key builds/pingcap/operator/${GITHASH}/centos7/tidb-operator.tar.gz --file $dir/tidb-operator.tar.gz

echo "info: update ref of branch '$BUILD_BRANCH'"
echo -n $GITHASH > $dir/sha1
$dir/linux64/filemgr-linux64 --config $dir/linux64/config.cfg --action mput --bucket ${UCLOUD_UFILE_BUCKET} --nobar --key refs/pingcap/operator/${BUILD_BRANCH}/centos7/sha1 --file $dir/sha1
$dir/linux64/filemgr-linux64 --config $dir/config.cfg --action mput --bucket ${UCLOUD_UFILE_BUCKET} --nobar --key refs/pingcap/operator/${BUILD_BRANCH}/centos7/sha1 --file $dir/sha1
}

# retry a few times until it succeeds, this can avoid temporary network flakes
Expand Down

0 comments on commit 8b99780

Please sign in to comment.