-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: schedule Hugging Face Parquet dataset push every day
- Loading branch information
1 parent
0b2f414
commit 7e525c1
Showing
6 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ jobs: | |
echo "CROP_ALLOWED_DOMAINS=static.openfoodfacts.net,static.openfoodfacts.org,openfoodfacts-images.s3.eu-west-3.amazonaws.com,images.openfoodfacts.net,images.openfoodfacts.org" >> $GITHUB_ENV | ||
echo "ROBOTOFF_POSTGRES_SHARED_BUFFERS=8GB" >> $GITHUB_ENV | ||
echo "ROBOTOFF_POSTGRES_WORK_MEM=1GB" >> $GITHUB_ENV | ||
echo "ENABLE_HF_PUSH=0" >> $GITHUB_ENV | ||
- name: Set various variable for production deployment | ||
if: matrix.env == 'robotoff-org' | ||
run: | | ||
|
@@ -58,6 +59,7 @@ jobs: | |
echo "CROP_ALLOWED_DOMAINS=static.openfoodfacts.org,openfoodfacts-images.s3.eu-west-3.amazonaws.com,images.openfoodfacts.org" >> $GITHUB_ENV | ||
echo "ROBOTOFF_POSTGRES_SHARED_BUFFERS=16GB" >> $GITHUB_ENV | ||
echo "ROBOTOFF_POSTGRES_WORK_MEM=2GB" >> $GITHUB_ENV | ||
echo "ENABLE_HF_PUSH=1" >> $GITHUB_ENV | ||
- name: Wait for container build workflow | ||
uses: tomchv/[email protected] | ||
id: wait-build | ||
|
@@ -182,6 +184,8 @@ jobs: | |
# Secret key to secure batch job import | ||
echo "BATCH_JOB_KEY=${{ secrets.BATCH_JOB_KEY }}" >> .env | ||
# Enable or not dataset push to Hugging Face | ||
echo "ENABLE_HF_PUSH=${{ env.ENABLE_HF_PUSH }}" >> .env | ||
- name: Create Docker volumes | ||
uses: appleboy/ssh-action@master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters