You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
minio-deploy-action/entrypoint.sh

13 lines
332 B
Bash

#!/usr/bin/env bash
set -euxo pipefail
insecure_option=""
if [[ "$MINIO_INSECURE" == "true" ]]; then
insecure_option="--insecure"
fi
mc alias set ${insecure_option:+"$insecure_option"} deploy "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
mc mirror --overwrite ${insecure_option:+"$insecure_option"} $1 "deploy/$2"