Skip to content

Commit c1e5df7

Browse files
committed
Comments
1 parent ec8b9a9 commit c1e5df7

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

runners/daily.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
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

runners/setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/sh
22

3-
# service account
3+
# auth with service account
44
gcloud secrets versions access latest --secret="$SERVICE_ACCOUNT_SECRET_NAME" > service_account.json
55
gcloud auth activate-service-account --key-file=service_account.json
66
rm service_account.json
77

8-
# .env
8+
# use service account to access environment variables from GCP secrets, create .env
99
gcloud 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
1212
sh "/app/runners/$RUNNER_SCRIPT_NAME"

0 commit comments

Comments
 (0)