Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
new version of gcloud actions
  • Loading branch information
w00kie authored Dec 12, 2020
1 parent 3f1074e commit 952f9ad
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Setup Google Cloud
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
uses: google-github-actions/setup-gcloud@master
with:
version: '270.0.0'
service_account_key: ${{ secrets.GCLOUD_AUTH }}
- name: Configure docker
run: |
Expand All @@ -40,14 +39,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Google Cloud
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '270.0.0'
service_account_key: ${{ secrets.GCLOUD_AUTH }}
- name: Deploy
run: |
gcloud components install beta && gcloud beta run deploy ${{ secrets.GCLOUD_APP_NAME }} --quiet --image gcr.io/${{ secrets.GCLOUD_PROJECT }}/${{ secrets.GCLOUD_APP_NAME }} --project ${{ secrets.GCLOUD_PROJECT }} --region ${{ secrets.GCLOUD_REGION }} --platform managed
uses: google-github-actions/deploy-cloudrun@main
with:
credentials: ${{ secrets.GCLOUD_AUTH }}
image: gcr.io/${{ secrets.GCLOUD_PROJECT }}/${{ secrets.GCLOUD_APP_NAME }}
service: ${{ secrets.GCLOUD_APP_NAME }}
region: ${{ secrets.GCLOUD_REGION }}
project_id: ${{ secrets.GCLOUD_PROJECT }}
- name: Notify Sentry of deployment
uses: getsentry/[email protected]
env:
Expand Down

0 comments on commit 952f9ad

Please sign in to comment.