forked from shuttle-hq/synth
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 997 Bytes
/
synth-master.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
name: synth master ci/cd
on:
push:
branches:
- master
jobs:
deploy:
name: deployments
runs-on: ubuntu-latest
env:
project_id: openquery-synth-dev
steps:
- uses: actions/checkout@v2
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@master
with:
project_id: ${{ env.project_id }}
service_account_key: ${{ secrets.OPENQUERY_CI_SERVICE_ACCOUNT_KEY }}
export_default_credentials: true
- name: Build image
run: |
echo building image...
gcloud auth configure-docker
docker build -t eu.gcr.io/${project_id}/playground:$GITHUB_SHA -f dist/playground/Dockerfile .
docker push eu.gcr.io/${project_id}/playground:$GITHUB_SHA
- name: Deploy Playground
run: |
echo deploying playground...
gcloud run services update playground-backend --image=eu.gcr.io/${project_id}/playground:$GITHUB_SHA --region=europe-west2