CI: extract .ci/check_if_build_was_already_uploaded
parent
c5d61ca63e
commit
33dd45b6e5
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
check_directory_exists() {
|
||||
local remote_dir="$1"
|
||||
|
||||
! curl --output /dev/null --silent --head --fail "$remote_dir"
|
||||
}
|
||||
|
||||
S3_URL="https://${S3_BUCKET}.s3.amazonaws.com/${S3_BUILD_DIRECTORY}/";
|
||||
check_directory_exists "$S3_URL"
|
Loading…
Reference in New Issue