mirror of
https://github.com/lovellfelix/minio-deploy-action.git
synced 2025-12-11 19:51: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
|
# 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.
|
Run [minio client][] in GitHub Actions to deploy files to Minio object storage.
|
||||||
|
|
||||||
It uses the `mc mirror --overwrite` command to deploy.
|
It uses the `mc mirror --overwrite` command to deploy.
|
||||||
@@ -10,15 +11,15 @@ Put the following step in your workflow:
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Minio Deploy
|
- name: Minio Deploy
|
||||||
uses: hkdobrev/minio-deploy-action@v1
|
uses: lovellfelix/minio-deploy-action@v1
|
||||||
with:
|
with:
|
||||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||||
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
|
secret_key: ${{ secrets.MINIO_SECRET_KEY }}
|
||||||
bucket: 'mybucket'
|
bucket: 'mybucket'
|
||||||
# Optional inputs with their defaults:
|
# Optional inputs with their defaults:
|
||||||
source_dir: 'public'
|
source_dir: 'public'
|
||||||
target_dir: '/'
|
target_dir: '/'
|
||||||
```
|
```
|
||||||
|
|
||||||
Workflow example:
|
Workflow example:
|
||||||
@@ -41,7 +42,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Minio Deploy
|
- name: Minio Deploy
|
||||||
uses: hkdobrev/minio-deploy-action@v1
|
uses: lovellfelix/minio-deploy-action@v1
|
||||||
with:
|
with:
|
||||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
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
|
mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY --api S3v4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user