Skip to content

Commit 1fed2c8

Browse files
authored
UPD: Update cd-workflow.yaml (#73)
1 parent 4afa2a9 commit 1fed2c8

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/cd-workflow.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,20 @@ jobs:
9494
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
9595
service_account: ${{ secrets.GCP_DEPLOY_SA }}
9696

97+
- name: Set up GCP SDK
98+
uses: google-github-actions/setup-gcloud@v1
99+
with:
100+
project_id: ${{ secrets.GCP_PROJECT_ID }}
101+
97102
- name: Deploy to Cloud Run
98103
id: deploy
99-
uses: google-github-actions/deploy-cloudrun@v2
100-
with:
101-
project_id: ${{ secrets.GCP_PROJECT_ID }}
104+
run: |
105+
gcloud run deploy
102106
service: ${{ secrets.GCP_CLOUD_RUN_SERVICE }}
103107
image: ${{ secrets.GCP_REGION }}-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_GAR_REPO }}/backstage-image:${{ github.sha }}
104108
region: ${{ secrets.GCP_REGION }}
105109
flags: |
106-
--platform managed
107-
--allow-unauthenticated
108-
--port=7007
109-
secrets: |
110-
GITHUB_TOKEN=github_token:latest
111-
GITLAB_TOKEN=gitlab_token:latest
112-
GOOGLE_CLIENT_ID=google_client_id:latest
113-
GOOGLE_CLIENT_SECRET=google_client_secret:latest
114-
PROD_GITHUB_CLIENT_SECRET=github_client_secret:latest
115-
PROD_GITHUB_CLIENT_ID=github_client_id:latest
110+
--platform managed \
111+
--allow-unauthenticated \
112+
--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

0 commit comments

Comments
 (0)