Update cloudbuild.yaml

This commit is contained in:
mnieuwstraten 2019-09-12 11:45:49 +02:00 committed by GitHub
parent 694f7a539a
commit 0995a9621f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,15 @@
steps: steps:
- name: maven:3.6.0-jdk-11-slim - name: maven:3.6.0-jdk-11-slim
entrypoint: 'mvn' entrypoint: 'mvn'
args: ['clean', 'install', '-DskipTests'] args: ['clean', 'install', '-DskipTests']
- name: 'gcr.io/cloud-builders/docker' - name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/qinfra-acc/petclinic_dev', '.'] args: ['build', '-t', 'gcr.io/qinfra-acc/petclinic_dev', '.']
images: ['gcr.io/qinfra-acc/petclinic_dev'] images: ['gcr.io/qinfra-acc/petclinic_dev']
- name: 'gcr.io/cloud-builders/kubectl' - name: 'gcr.io/cloud-builders/kubectl'
args: ['set', 'image', 'deployment/petclinic-dev', 'my-container=gcr.io/qinfra-acc/petclinic_dev'] args: ['set', 'image', 'deployment/petclinic-dev', 'my-container=gcr.io/qinfra-acc/petclinic_dev']
env: env:
- 'CLOUDSDK_COMPUTE_ZONE=us-east4-b' - 'CLOUDSDK_COMPUTE_ZONE=us-east4-b'
- 'CLOUDSDK_CONTAINER_CLUSTER=my-cluster' - 'CLOUDSDK_CONTAINER_CLUSTER=my-cluster'
options: options:
machineType: 'N1_HIGHCPU_2' machineType: 'N1_HIGHCPU_2'