forked from hkdobrev/minio-deploy-action
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
41 lines (41 loc) · 1.18 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Minio Upload and Slack Notify'
description: 'Upload to Minio Storage and send notification to slack.'
author: 'iamapinan'
inputs:
endpoint:
description: 'Minio endpoint of object storage host'
required: true
access_key:
description: 'Minio access key (username)'
required: true
secret_key:
description: 'Minio secret key (password)'
required: true
bucket:
description: 'Set the target minio bucket for deployment.'
required: true
source_dir:
description: 'Set an input directory for deployment.'
required: false
default: 'public'
target_dir:
description: 'Set a target directory for deployment (with a leading slash).'
required: false
default: '/'
runs:
using: 'docker'
image: 'Dockerfile'
env:
SLACK_HOOK: ${{ inputs.slack_hook }}
MINIO_ENDPOINT: ${{ inputs.endpoint }}
MINIO_ACCESS_KEY: ${{ inputs.access_key }}
MINIO_SECRET_KEY: ${{ inputs.secret_key }}
FILE_TO_DOWNLOAD: ${{ inputs.file }}
MSG: ${{ inputs.slack_msg }}
BOT: ${{ inputs.slack_botname }}
args:
- ${{ inputs.source_dir }}
- '${{ inputs.bucket }}${{ inputs.target_dir }}'
branding:
icon: 'upload-cloud'
color: 'red'