Merge pull request 'added CI step to trigger label studio sync to target storage' (#12) from readd-label-studio-sync-to-minio into main
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
@@ -9,6 +9,14 @@ jobs:
|
||||
sync_storage:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Sync Label Studio to target storage
|
||||
env:
|
||||
LABEL_STUDIO_API_TOKEN: ${{ secrets.LABEL_STUDIO_API_TOKEN }}
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: Token $LABEL_STUDIO_API_TOKEN" \
|
||||
"https://label-studio.gt-proj.com/api/storages/export/s3/1/sync"
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -25,7 +33,7 @@ jobs:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync --all-extras
|
||||
|
||||
- name: Sync annotations
|
||||
- name: Sync target storage to annotations
|
||||
env:
|
||||
MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }}
|
||||
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user