forked from sushi-labs/sushiswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
37 lines (37 loc) · 910 Bytes
/
cloudbuild.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
33
34
35
36
37
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- '--build-arg'
- 'SCRIPT_PATH=./jobs/pool'
- '-t'
- 'gcr.io/$PROJECT_ID/$TRIGGER_NAME:latest'
- '-f'
- './jobs/pool/Dockerfile'
- .
dir: /workspace
id: Build Docker Image
- name: gcr.io/cloud-builders/docker
args:
- push
- 'gcr.io/$PROJECT_ID/$TRIGGER_NAME:latest'
id: Push Docker Image
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
env:
- 'DATABASE_URL=${_DATABASE_URL}'
args:
- run
- deploy
- scripts-earn
- '--image'
- 'gcr.io/$PROJECT_ID/$TRIGGER_NAME:latest'
- '--region'
- us-central1
- '--set-env-vars=DATABASE_URL=$_DATABASE_URL'
id: Update Cloud Run Service
entrypoint: gcloud
timeout: 3600s
images:
- 'gcr.io/$PROJECT_ID/$TRIGGER_NAME:latest'
options:
machineType: E2_HIGHCPU_8