added steps to correct content type in minio
This commit is contained in:
@@ -13,8 +13,16 @@ jobs:
|
||||
env:
|
||||
LABEL_STUDIO_API_TOKEN: ${{ secrets.LABEL_STUDIO_API_TOKEN }}
|
||||
run: |
|
||||
# Replace <your_label_studio_url> and <your_storage_id> with your actual values.
|
||||
# The storage_id can be found in the URL when you view your cloud storage in Label Studio.
|
||||
curl -X POST \
|
||||
-H "Authorization: Token $LABEL_STUDIO_API_TOKEN" \
|
||||
"https://label-studio.gt-proj.com/api/storages/export/s3/1/sync"
|
||||
|
||||
- name: Fix MinIO file content type
|
||||
env:
|
||||
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
|
||||
run: |
|
||||
mc alias set myminio http://10.0.0.2:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
||||
mc mirror --recursive --overwrite --attr 'Content-Type=application/json' \
|
||||
myminio/visual-semiotic-ai-analysis/label-studio-output \
|
||||
myminio/visual-semiotic-ai-analysis/label-studio-output
|
||||
|
||||
Reference in New Issue
Block a user