File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 53
53
username : _json_key
54
54
password : ${{ secrets.GCP_CREDENTIALS }}
55
55
56
- - name : Build and push to GCR v2
56
+ - name : Build and push to GCR
57
57
id : build-push
58
58
env :
59
59
GCR_REGISTRY : gcr.io/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_APP_NAME }}
70
70
docker image tag $GCR_REGISTRY/$GCR_REPOSITORY:$IMAGE_TAG $GCR_REGISTRY/$GCR_REPOSITORY:latest
71
71
docker push $GCR_REGISTRY/$GCR_REPOSITORY:$IMAGE_TAG
72
72
docker push $GCR_REGISTRY/$GCR_REPOSITORY:latest
73
+
74
+ - name : Login to gcloud
75
+ uses : google-github-actions/setup-gcloud@v0
76
+ with :
77
+ project_id : ${{ secrets.GCP_PROJECT_ID }}
78
+ service_account_email : ${{ secrets.GCP_EMAIL }}
79
+ service_account_key : ${{ secrets.GCP_CREDENTIALS }}
80
+
81
+ - name : Deploy to Cloud Run
82
+ run : |
83
+ gcloud run deploy ${{ secrets.GCP_APP_NAME }} \
84
+ --image gcr.io/${{ secrets.GCP_PROJECT }}/${{ secrets.GCP_APP_NAME }}:$IMAGE_TAG \
85
+ --platform managed \
86
+ --allow-unauthenticated \
87
+ --update-secrets=JIRA_PASSWORD=JIRA_PASSWORD:latest,JIRA_USERNAME=JIRA_USERNAME:latest,BUGZILLA_API_KEY=BUGZILLA_API_KEY:latest # pragma: allowlist secret
You can’t perform that action at this time.
0 commit comments