|
|
@ -2,11 +2,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
|
|
|
|
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insecure_option=""
|
|
|
|
insecure_option=""
|
|
|
|
if ["$MINIO_INSECURE" == "true"]; then
|
|
|
|
if ["$MINIO_INSECURE" == "true"]; then
|
|
|
|
insecure_option="--insecure"
|
|
|
|
insecure_option="--insecure"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mc alias set $insecure_option deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
|
|
|
|
|
|
|
|
|
|
|
mc mirror --overwrite $insecure_option $1 "deploy/$2"
|
|
|
|
mc mirror --overwrite $insecure_option $1 "deploy/$2"
|
|
|
|