3 Commits
v1.0.1 ... main

Author SHA1 Message Date
Lovell Felix
cfc4b36780 fix bash ref issue 2020-12-22 23:30:27 -06:00
Lovell Felix
8adc15e705 update readme 2020-12-22 23:21:49 -06:00
Lovell Felix
266ac83dee Update README.md 2020-12-22 23:20:23 -06:00
2 changed files with 13 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
# Minio Deploy GitHub Action
This is a fork from hkdobrev/minio-deploy-action with some minor changes.
Run [minio client][] in GitHub Actions to deploy files to Minio object storage.
It uses the `mc mirror --overwrite` command to deploy.
@@ -10,15 +11,15 @@ Put the following step in your workflow:
```yml
- name: Minio Deploy
uses: hkdobrev/minio-deploy-action@v1
with:
endpoint: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
bucket: 'mybucket'
# Optional inputs with their defaults:
source_dir: 'public'
target_dir: '/'
uses: lovellfelix/minio-deploy-action@v1
with:
endpoint: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
bucket: 'mybucket'
# Optional inputs with their defaults:
source_dir: 'public'
target_dir: '/'
```
Workflow example:
@@ -41,7 +42,7 @@ jobs:
- uses: actions/checkout@v1
- name: Minio Deploy
uses: hkdobrev/minio-deploy-action@v1
uses: lovellfelix/minio-deploy-action@v1
with:
endpoint: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_ACCESS_KEY }}

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/bin/sh -l
set -euo pipefail
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4