From b4b99f0096e1ad253ffe1e3c24a94a1cc22ed7f5 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Fri, 14 Mar 2025 16:26:22 +0800 Subject: [PATCH] cd: eu --- .github/workflows/cd.yml | 8 +++++++- .vscode/launch.json | 22 ++++++++++++++++++++++ thinapps-shared | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index bd0a08f..90efe51 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -72,4 +72,10 @@ jobs: gcloud beta run deploy crawl --image us-docker.pkg.dev/reader-6b7dc/jina-reader/reader@${{steps.container.outputs.imageid}} --tag ${{ env.RELEASE_VERSION }} --command '' --args build/stand-alone/crawl.js --region us-central1 --async --min-instances 0 --deploy-health-check --use-http2 - name: Deploy SEARCH with Tag run: | - gcloud beta run deploy search --image us-docker.pkg.dev/reader-6b7dc/jina-reader/reader@${{steps.container.outputs.imageid}} --tag ${{ env.RELEASE_VERSION }} --command '' --args build/stand-alone/search.js --region us-central1 --async --min-instances 0 --deploy-health-check --use-http2 \ No newline at end of file + gcloud beta run deploy search --image us-docker.pkg.dev/reader-6b7dc/jina-reader/reader@${{steps.container.outputs.imageid}} --tag ${{ env.RELEASE_VERSION }} --command '' --args build/stand-alone/search.js --region us-central1 --async --min-instances 0 --deploy-health-check --use-http2 + - name: Deploy CRAWL-EU with Tag + run: | + gcloud beta run deploy crawl-eu --image us-docker.pkg.dev/reader-6b7dc/jina-reader/reader@${{steps.container.outputs.imageid}} --tag ${{ env.RELEASE_VERSION }} --command '' --args build/stand-alone/crawl.js --region europe-west1 --async --min-instances 0 --deploy-health-check --use-http2 + - name: Deploy SEARCH-EU with Tag + run: | + gcloud beta run deploy search-eu --image us-docker.pkg.dev/reader-6b7dc/jina-reader/reader@${{steps.container.outputs.imageid}} --tag ${{ env.RELEASE_VERSION }} --command '' --args build/stand-alone/search.js --region europe-west1 --async --min-instances 0 --deploy-health-check --use-http2 \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 6569984..350938a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -60,6 +60,28 @@ "preLaunchTask": "Backend:build:watch", "killBehavior": "forceful" }, + { + "name": "Debug Stand Alone Crawl - EU", + "request": "launch", + "runtimeArgs": [ + "--env-file=.secret.local", + ], + "env": { + "GCLOUD_PROJECT": "reader-6b7dc", + "FIRESTORE_DATABASE": "reader-eu", + "GCP_STORAGE_BUCKET": "reader-eu", + "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib" + }, + "cwd": "${workspaceFolder}", + "program": "build/stand-alone/crawl.js", + "skipFiles": [ + "/**" + ], + "type": "node", + "outputCapture": "std", + "preLaunchTask": "Backend:build:watch", + "killBehavior": "forceful" + }, { "name": "Debug Stand Alone Search", "request": "launch", diff --git a/thinapps-shared b/thinapps-shared index f7d65a8..4b1061e 160000 --- a/thinapps-shared +++ b/thinapps-shared @@ -1 +1 @@ -Subproject commit f7d65a8b12fa32d3d6fa46585d73693cba7b14e3 +Subproject commit 4b1061e6e9623bb98b82ac6f86004988c7211385