Push to main/master (when src/priority_pipeline/** changes)
Yes
Deployment Process
Automatic Deployment (Production)
Push to main or master branches
Only triggers when files in src/priority_pipeline/** are changed
Manual Deployment (Staging or Production)
Go to GitHub: credinvest/social_media_scrapers > Actions
Select "Deploy Priority Pipeline" workflow
Click "Run workflow"
Select environment: staging or production
Click "Run workflow"
Deployment Order
Webhook service deploys first (generates URL)
API service deploys (uses webhook URL)
Coordinator job deploys
Environment Variables
API Service
Variable
Description
Value
BRIGHTDATA
BrightData API token
Secret
GCP_PROJECT_ID
Google Cloud project ID
cred-1556636033881
WEBHOOK_URL
Webhook service URL
Auto-generated
ENVIRONMENT
Environment name
staging / production
Webhook Service
Variable
Description
Value
GCP_PROJECT_ID
Google Cloud project ID
cred-1556636033881
ENVIRONMENT
Environment name
staging / production
Coordinator Job
Variable
Description
Value
BRIGHTDATA
BrightData API token
Secret
GCP_PROJECT_ID
Google Cloud project ID
cred-1556636033881
PYTHONPATH
Python path
/app
ENVIRONMENT
Environment name
staging / production
Service Configuration
Service
Max Instances
Concurrency
CPU
Memory
Timeout
API
1000
1
1
2Gi
3600s
Webhook
5000
1
1
2Gi
3600s
Coordinator Job
-
-
2
8Gi
168h
Post-Deployment Verification
Health Check
# Get URLsAPI_URL=$(gcloudrunservicesdescribepriority-pipeline-api--region=us-central1--format='value(status.url)')WEBHOOK_URL=$(gcloudrunservicesdescribepriority-pipeline-webhook--region=us-central1--format='value(status.url)')# Test
curl$API_URL/health
curl$WEBHOOK_URL/health
# API service
gcloudloggingread"resource.type=cloud_run_revision AND resource.labels.service_name=priority-pipeline-api"--limit50# Webhook service
gcloudloggingread"resource.type=cloud_run_revision AND resource.labels.service_name=priority-pipeline-webhook"--limit50# Coordinator job
gcloudloggingread"resource.type=cloud_run_job AND resource.labels.job_name=priority-pipeline-coordinator"--limit50