mirror of
https://github.com/lovellfelix/minio-deploy-action.git
synced 2025-12-10 11:11:14 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfc4b36780 | ||
|
|
8adc15e705 | ||
|
|
266ac83dee |
21
README.md
21
README.md
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user