Tricks section
This commit is contained in:
parent
68fc785123
commit
44c9f09e70
16
README.md
16
README.md
|
@ -4,12 +4,22 @@
|
|||
|
||||
Runs [minio client](https://min.io/docs/minio/linux/reference/minio-mc.html) to upload file(s) to MinIO (self-hosted as well)
|
||||
|
||||
## Tricky part
|
||||
_Technically_ this action can be used with different S3-compatible services, but it **needs tuning**
|
||||
|
||||
### MinIO
|
||||
1. You should have a leading slash at the start of `target`
|
||||
2. You should include filename/dirname into `target`. If you have `source=./directory` and `target=/subdir/directory`, it would be nested - `/subdir/directory/directory`
|
||||
|
||||
### Yandex Cloud
|
||||
1. For Ya.Cloud you **have to** include filename/dirname into `target`, otherwise you will get an empty `target`. Example: `source=directory; target=/test` leads to empty `/test`, but `source=directory; target=/test/directory` would upload as expected.
|
||||
|
||||
## Usage
|
||||
|
||||
1. Upload a file
|
||||
```yaml
|
||||
- name: Upload to MinIO
|
||||
uses: yakubique/minio-upload@v1.1
|
||||
uses: yakubique/minio-upload@v1.1.3
|
||||
with:
|
||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
|
@ -23,7 +33,7 @@ Runs [minio client](https://min.io/docs/minio/linux/reference/minio-mc.html) to
|
|||
2. Upload a directory
|
||||
```yaml
|
||||
- name: Upload a directory to MinIO
|
||||
uses: yakubique/minio-upload@v1.1
|
||||
uses: yakubique/minio-upload@v1.1.3
|
||||
with:
|
||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
|
@ -39,7 +49,7 @@ Runs [minio client](https://min.io/docs/minio/linux/reference/minio-mc.html) to
|
|||
3. Upload to the insecure MinIO instance (_http-only_)
|
||||
```yaml
|
||||
- name: Upload to MinIO
|
||||
uses: yakubique/minio-upload@v1.1
|
||||
uses: yakubique/minio-upload@v1.1.3
|
||||
with:
|
||||
endpoint: ${{ secrets.MINIO_ENDPOINT }}
|
||||
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
|
|
Loading…
Reference in New Issue