-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (42 loc) · 1.37 KB
/
bio.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
40
41
42
43
44
45
46
47
48
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build docker image
uses: docker/[email protected]
with:
context: lambda.clementine-player.org/bio
file: lambda.clementine-player.org/bio/Dockerfile
push: false
tags: |
gcr.io/clementine-web/bio
- name: Set up gcloud Cloud SDK environment
uses: google-github-actions/[email protected]
with:
project_id: "clementine-web"
service_account_key: ${{ secrets.GOOGLE_CREDENTIALS }}
export_default_credentials: true
- name: Install beta gcloud components
run: gcloud components install beta
- name: Configure docker auth
run: gcloud auth configure-docker
- name: docker push
run: docker push gcr.io/clementine-web/bio
- name: Deploy service to Cloud Run
run: >
gcloud beta run deploy bio
--region europe-north1
--image gcr.io/clementine-web/bio
--platform managed
--allow-unauthenticated
--project clementine-web
--set-secrets KG_API_KEY=KG_API_KEY:latest
--service-account [email protected]
--max-instances=1
--memory=128Mi