-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (33 loc) · 1.01 KB
/
server.yaml
File metadata and controls
42 lines (33 loc) · 1.01 KB
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
40
41
42
name: Server CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Google Cloud Auth
uses: google-github-actions/auth@v1
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Log in to GCR
run: gcloud auth configure-docker
- name: Build and push server image
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile
push: true
tags: gcr.io/polybase-internal/polylang-server:latest
- name: Deploy
run: |
gcloud config set project polybase-internal
gcloud config set run/region us-central1
gcloud run deploy polylang-server --image gcr.io/polybase-internal/polylang-server:latest