-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
13 lines (13 loc) · 899 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
steps:
- name: 'gcr.io/cloud-builders/git'
args: ['clone', 'https://github.com/pavan-bommideni/mongo-spring-boot']
- name: 'gcr.io/cloud-builders/mvn'
args: ['package']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/deft-landing-244816/mongo:latest', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/deft-landing-244816/mongo:latest']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'run', 'deploy', 'mongo-gke', '--image', 'gcr.io/deft-landing-244816/mongo:latest', '--cluster', 'standard-cluster-1', '--cluster-location', 'us-central1-a', '--platform', 'gke', '--namespace', 'default', '--quiet']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'run', 'deploy', 'mongo-managed', '--image', 'gcr.io/deft-landing-244816/mongo:latest', '--memory', '2Gi', '--platform', 'managed', '--allow-unauthenticated', '--region', 'us-central1']