Compare commits
No commits in common. "main" and "1.0.0" have entirely different histories.
|
@ -22,10 +22,6 @@ inputs:
|
|||
description: 'Set a target directory for deployment (with a leading slash).'
|
||||
required: false
|
||||
default: '/'
|
||||
insecure:
|
||||
description: 'Trust SSL certificates with minio --insecure option'
|
||||
required: false
|
||||
default: 'false'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
|
@ -33,7 +29,6 @@ runs:
|
|||
MINIO_ENDPOINT: ${{ inputs.endpoint }}
|
||||
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
|
||||
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
|
||||
MINIO_INSECURE: ${{ inputs.insecure }}
|
||||
args:
|
||||
- ${{ inputs.source_dir }}
|
||||
- '${{ inputs.bucket }}${{ inputs.target_dir }}'
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
set -euxo pipefail
|
||||
|
||||
insecure_option=""
|
||||
if [[ "$MINIO_INSECURE" == "true" ]]; then
|
||||
insecure_option="--insecure"
|
||||
fi
|
||||
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
||||
|
||||
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"
|
||||
mc mirror --overwrite $1 "deploy/$2"
|
||||
|
|
Loading…
Reference in New Issue