Skip to content

Commit

Permalink
Deploy to Google Cloud Run
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel committed Oct 3, 2023
1 parent 8736b38 commit cea7e9c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 35 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
23 changes: 0 additions & 23 deletions .github/workflows/deploy-to-gae.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/deploy-to-gcloudrun.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:18
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci
COPY . .
EXPOSE 8080
CMD [ "node", "server.js" ]
12 changes: 0 additions & 12 deletions app.yaml

This file was deleted.

0 comments on commit cea7e9c

Please sign in to comment.