Skip to content

Commit 35d5e96

Browse files
committed
Refactor how builder-api is restarted upon library sync
- redeploys the same image instead of relying on `:latest` - adds a timestamp so we know that the sync happened and when
1 parent 79a0240 commit 35d5e96

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/load-library-metadata.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
env:
88
PROJECT_ID: benefit-decision-toolkit-play
99
REGION: us-central1
10-
SERVICE: benefit-decision-toolkit-play
1110
WORKLOAD_IDENTITY_PROVIDER: projects/1034049717668/locations/global/workloadIdentityPools/github-actions-google-cloud/providers/github
1211

1312
jobs:
@@ -55,6 +54,6 @@ jobs:
5554

5655
- name: Restart builder-api with updated library metadata
5756
run: |
58-
gcloud run deploy builder-api \
59-
--image us-central1-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/builder-api:latest \
60-
--region ${{ env.REGION }}
57+
gcloud run services update builder-api \
58+
--region ${{ env.REGION }} \
59+
--update-env-vars LIBRARY_SYNC_TIMESTAMP=$(date -u +%Y%m%dT%H%M%SZ)

0 commit comments

Comments
 (0)