File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ jobs:
4141 push : true
4242 tags : us-central1-docker.pkg.dev/api-tools-451421/runners/runner
4343
44- - name : Upload to dev job
44+ - name : Upload to daily dev job
4545 uses : google-github-actions/deploy-cloudrun@v2
4646 with :
4747 job : ' daily-dev'
4848 image : ' us-central1-docker.pkg.dev/api-tools-451421/runners/runner'
4949 region : us-central1
5050
51- - name : Upload to prod job
51+ - name : Upload to daily prod job
5252 uses : google-github-actions/deploy-cloudrun@v2
5353 with :
5454 job : ' daily-prod'
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # other daily activites
4- # ...
3+ # for daily tasks to run
54
6- # Scrape , parse, and upload events
5+ # scrape , parse, and upload events
76./api-tools -scrape -mazevo -verbose
87./api-tools -parse -mazevo -verbose
98./api-tools -scrape -astra -verbose
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # service account
3+ # auth with service account
44gcloud secrets versions access latest --secret=" $SERVICE_ACCOUNT_SECRET_NAME " > service_account.json
55gcloud auth activate-service-account --key-file=service_account.json
66rm service_account.json
77
8- # .env
8+ # use service account to access environment variables from GCP secrets, create .env
99gcloud secrets versions access latest --secret=" $ENV_SECRET_NAME " > .env
1010
11- # run commands from file specified in GCP
11+ # run commands from the file path specified in the GCP run job's variable
1212sh " /app/runners/$RUNNER_SCRIPT_NAME "
You can’t perform that action at this time.
0 commit comments