Skip to content

Commit 64c6d59

Browse files
authored
UPD: Update cd-workflow.yaml (#74)
1 parent 1fed2c8 commit 64c6d59

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/cd-workflow.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,19 @@ jobs:
101101

102102
- name: Deploy to Cloud Run
103103
id: deploy
104-
run: |
105-
gcloud run deploy
104+
with:
105+
project_id: ${{ secrets.GCP_PROJECT_ID }}
106106
service: ${{ secrets.GCP_CLOUD_RUN_SERVICE }}
107107
image: ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_GAR_REPO }}/backstage-image:${{ github.sha }}
108108
region: ${{ secrets.GCP_REGION }}
109109
flags: |
110110
--platform managed \
111111
--allow-unauthenticated \
112112
--port=7007 \
113-
--set-secrets=GITHUB_TOKEN=github_token:latest,GITLAB_TOKEN=gitlab_token:latest,GOOGLE_CLIENT_ID=google_client_id:latest,GOOGLE_CLIENT_SECRET=google_client_secret:latest,PROD_GITHUB_CLIENT_SECRET=github_client_secret:latest,PROD_GITHUB_CLIENT_ID=github_client_id:latest
113+
secrets: |
114+
GITHUB_TOKEN=github_token:latest
115+
GITLAB_TOKEN=gitlab_token:latest
116+
GOOGLE_CLIENT_ID=google_client_id:latest
117+
GOOGLE_CLIENT_SECRET=google_client_secret:latest
118+
PROD_GITHUB_CLIENT_SECRET=github_client_secret:latest
119+
PROD_GITHUB_CLIENT_ID=github_client_id:latest

0 commit comments

Comments
 (0)