mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-15 04:20:39 +00:00
ci: set upload timeout for uploading artifacts to S3 (#7958)
* ci: set upload timeout for uploading artifacts to S3 Signed-off-by: liyang <daviderli614@gmail.com> * Update upload-artifacts-to-s3.sh --------- Signed-off-by: liyang <daviderli614@gmail.com>
This commit is contained in:
15
.github/scripts/upload-artifacts-to-s3.sh
vendored
15
.github/scripts/upload-artifacts-to-s3.sh
vendored
@@ -38,6 +38,11 @@ function upload_artifacts() {
|
||||
curl -X PUT \
|
||||
-u "$PROXY_USERNAME:$PROXY_PASSWORD" \
|
||||
-F "file=@$file" \
|
||||
--max-time 3600 \
|
||||
--connect-timeout 20 \
|
||||
--retry 5 \
|
||||
--retry-delay 10 \
|
||||
--retry-max-time 3000 \
|
||||
"$TARGET_URL"
|
||||
done
|
||||
}
|
||||
@@ -54,6 +59,11 @@ function update_version_info() {
|
||||
curl -X PUT \
|
||||
-u "$PROXY_USERNAME:$PROXY_PASSWORD" \
|
||||
-F "file=@latest-version.txt" \
|
||||
--max-time 3600 \
|
||||
--connect-timeout 20 \
|
||||
--retry 5 \
|
||||
--retry-delay 10 \
|
||||
--retry-max-time 3000 \
|
||||
"$TARGET_URL"
|
||||
fi
|
||||
|
||||
@@ -66,6 +76,11 @@ function update_version_info() {
|
||||
curl -X PUT \
|
||||
-u "$PROXY_USERNAME:$PROXY_PASSWORD" \
|
||||
-F "file=@latest-nightly-version.txt" \
|
||||
--max-time 3600 \
|
||||
--connect-timeout 20 \
|
||||
--retry 5 \
|
||||
--retry-delay 10 \
|
||||
--retry-max-time 3000 \
|
||||
"$TARGET_URL"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user