File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ in_file=$1
33out_file=$2
44id=$3
55wait_time=$4
6+ number_of_sleeps=$5
67
78in_filename=" $( basename -- $in_file ) "
89echo " Copying ${in_file} to s3 s3://${AWS_S3_BUCKET} /exes-to-sign/${id} .exe for signing"
910aws s3 cp $in_file s3://$AWS_S3_BUCKET /exes-to-sign/$id .exe
10- for i in {1..10 }
11+ for i in {1..$number_of_sleeps }
1112do
12- wait $wait_time
13+ sleep $wait_time
1314 aws s3api head-object --bucket $CDN_BUCKET --key spring-tools/exes-signed/$id .exe || NOT_EXIST=true
1415 if [ $NOT_EXIST ]; then
1516 echo " Waited ${wait_time} seconds but ${in_filename} hasn't been signed yet..."
Original file line number Diff line number Diff line change 3434 AWS_ENDPOINT_URL_S3 : ${{ secrets.CDN_S3_ENDPOINT }}
3535 AWS_S3_BUCKET : ${{ secrets.CDN_BUCKET }}/spring-tools
3636 DOWNLOAD_URL_ROOT : https://cdn.spring.io/spring-tools
37+ CDN_BUCKET : ${{ secrets.CDN_BUCKET }}
3738
3839jobs :
3940
You can’t perform that action at this time.
0 commit comments