Skip to content

Commit 4f1f32c

Browse files
author
Bryan Sieber
committed
Updating gh action
1 parent 570c40b commit 4f1f32c

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/build-image.yaml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,11 @@ jobs:
8181
uses: google-github-actions/auth@v0
8282
with:
8383
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
84-
create_credentials_file: false
8584

8685
- name: Deploy to Cloud Run
87-
env:
88-
BUILD_TAG: gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_APP_NAME }}/${{ secrets.GCP_GCR_REPO }}:${{ needs.build-image.outputs.BUILD_TAG }}
89-
run: |
90-
gcloud run deploy ${{ secrets.GCP_APP_NAME }} \
91-
--image $BUILD_TAG \
92-
--memory 512M \
93-
--platform managed \
94-
--allow-unauthenticated \
95-
--region ${{ secrets.GCP_REGION }} \
96-
--update-secrets=JIRA_PASSWORD=JIRA_PASSWORD:latest,JIRA_USERNAME=JIRA_USERNAME:latest,BUGZILLA_API_KEY=BUGZILLA_API_KEY:latest # pragma: allowlist secret
86+
uses: google-github-actions/deploy-cloudrun@v0
87+
with:
88+
service: ${{ secrets.GCP_APP_NAME }}
89+
image: gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_APP_NAME }}/${{ secrets.GCP_GCR_REPO }}:${{ needs.build-image.outputs.BUILD_TAG }}
90+
region: ${{ secrets.GCP_REGION }}
91+
env_vars: JIRA_PASSWORD=JIRA_PASSWORD:latest,JIRA_USERNAME=JIRA_USERNAME:latest,BUGZILLA_API_KEY=BUGZILLA_API_KEY:latest # pragma: allowlist secret

0 commit comments

Comments
 (0)