feat: add possibility to pass options
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: "Minio upload"
|
||||
description: "Deploy to Minio Storage"
|
||||
description: "Mirror to Minio Storage"
|
||||
author: "sPazz"
|
||||
inputs:
|
||||
endpoint:
|
||||
@@ -22,6 +22,10 @@ inputs:
|
||||
description: "Set a target directory for deployment (with a leading slash)."
|
||||
required: false
|
||||
default: "/"
|
||||
options:
|
||||
description: "Options to pass to mirror mc command"
|
||||
required: false
|
||||
default: ""
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
@@ -32,6 +36,7 @@ runs:
|
||||
args:
|
||||
- ${{ inputs.source_dir }}
|
||||
- "${{ inputs.bucket }}${{ inputs.target_dir }}"
|
||||
- "${{ inputs.options }}"
|
||||
branding:
|
||||
icon: "upload-cloud"
|
||||
color: "black"
|
||||
|
||||
@@ -3,4 +3,4 @@ set -euo pipefail
|
||||
|
||||
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4
|
||||
|
||||
mc mirror --overwrite $1 "deploy/$2"
|
||||
mc mirror --overwrite $3 $1 "deploy/$2"
|
||||
|
||||
Reference in New Issue
Block a user