Compare commits

..

No commits in common. "main" and "v1.1.2" have entirely different histories.
main ... v1.1.2

1 changed files with 3 additions and 13 deletions

View File

@ -4,22 +4,12 @@
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.3
uses: yakubique/minio-upload@v1.1
with:
endpoint: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
@ -33,7 +23,7 @@ _Technically_ this action can be used with different S3-compatible services, but
2. Upload a directory
```yaml
- name: Upload a directory to MinIO
uses: yakubique/minio-upload@v1.1.3
uses: yakubique/minio-upload@v1.1
with:
endpoint: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_ACCESS_KEY }}
@ -49,7 +39,7 @@ _Technically_ this action can be used with different S3-compatible services, but
3. Upload to the insecure MinIO instance (_http-only_)
```yaml
- name: Upload to MinIO
uses: yakubique/minio-upload@v1.1.3
uses: yakubique/minio-upload@v1.1
with:
endpoint: ${{ secrets.MINIO_ENDPOINT }}
access_key: ${{ secrets.MINIO_ACCESS_KEY }}