-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (32 loc) · 1.15 KB
/
deploy-to-gcloudrun.yaml
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
name: Deploy to GAE
on:
push:
branches:
- master
permissions:
contents: 'read'
id-token: 'write'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- id: auth
uses: google-github-actions/auth@v1
with:
workload_identity_provider: projects/769700566231/locations/global/workloadIdentityPools/gh-actions-pool/providers/github
service_account: [email protected]
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
with:
version: '>= 363.0.0'
- name: Build and Deploy
run: |
gcloud auth configure-docker us-east1-docker.pkg.dev --quiet
docker build --tag us-east1-docker.pkg.dev/fhir-org-cds-services/sandbox-cds-services/server:latest .
docker push us-east1-docker.pkg.dev/fhir-org-cds-services/sandbox-cds-services/server:latest
gcloud run deploy sandbox-cds-services \
--image=us-east1-docker.pkg.dev/fhir-org-cds-services/sandbox-cds-services/server:latest \
--region=us-central1 \
--project=fhir-org-cds-services