File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ inputs:
22
22
description : ' Set a target directory for deployment (with a leading slash).'
23
23
required : false
24
24
default : ' /'
25
+ insecure :
26
+ description : ' Trust SSL certificates with minio --insecure option'
27
+ required : false
28
+ default : ' false'
25
29
runs :
26
30
using : ' docker'
27
31
image : ' Dockerfile'
28
32
env :
29
33
MINIO_ENDPOINT : ${{ inputs.endpoint }}
30
34
MINIO_ACCESS_KEY : ${{ inputs.access_key }}
31
35
MINIO_SECRET_KEY : ${{ inputs.secret_key }}
36
+ MINIO_INSECURE : ${{ inputs.insecure }}
32
37
args :
33
38
- ${{ inputs.source_dir }}
34
39
- ' ${{ inputs.bucket }}${{ inputs.target_dir }}'
Original file line number Diff line number Diff line change @@ -4,4 +4,9 @@ set -euxo pipefail
4
4
5
5
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
6
6
7
- mc mirror --overwrite $1 " deploy/$2 "
7
+ insecure_option=" "
8
+ if [" $MINIO_INSECURE " == " true" ]; then
9
+ insecure_option=" --insecure"
10
+ fi
11
+
12
+ mc mirror --overwrite $insecure_option $1 " deploy/$2 "
You can’t perform that action at this time.
0 commit comments