forked from marxanweb/marxan-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
25 lines (25 loc) · 893 Bytes
/
cloudbuild.yaml
File metadata and controls
25 lines (25 loc) · 893 Bytes
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
# Builds an image and pushes it to the Artefact Registry
steps:
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'europe-west8-docker.pkg.dev/andrewcottam-default/andrew-docker/marxan-server:latest', '.' ]
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'europe-west8-docker.pkg.dev/andrewcottam-default/andrew-docker/marxan-server:latest']
# File that deploys a Docker image to Google Cloud Run and can be used in Google Cloud Build
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'run'
- 'deploy'
- 'marxan-server'
- '--image'
- 'europe-west8-docker.pkg.dev/andrewcottam-default/andrew-docker/marxan-server:latest'
- '--region'
- 'europe-west8'
- '--platform'
- 'managed'
- '--allow-unauthenticated'
- '--min-instances'
- '0'
- '--max-instances'
- '1'
- '--set-cloudsql-instances'
- 'andrewcottam-default:europe-west8:andrew-postgis'