-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 846 Bytes
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Continuous Delivery'
on:
workflow_run:
workflows: ["Continuous Integration"]
types:
- completed
branches:
- main
jobs:
cloud-run-update:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: 'repository checkout'
uses: 'actions/checkout@v4'
- name: 'gcp auth'
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: 'gcloud setup'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'cloud run deploy'
uses: 'google-github-actions/deploy-cloudrun@v2'
with:
project_id: '${{ env.GCP_PROJECT_ID }}'
region: 'us-central1'
service: 'mle-challenge'
source: '.'
revision_traffic: 'LATEST=100'