diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 0000000..55b4a99 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,23 @@ +steps: +- name: 'gcr.io/overleaf-ops/cloud-builder' + args: + - 'build' + env: + - 'BUILD_NUMBER=$SHORT_SHA' + - 'BRANCH_NAME=$BRANCH_NAME' +- name: 'gcr.io/overleaf-ops/cloud-builder' + args: + - 'test_unit' + env: + - 'DOCKER_COMPOSE_FLAGS=-f docker-compose.ci.yml' + - 'BUILD_NUMBER=$SHORT_SHA' + - 'BRANCH_NAME=$BRANCH_NAME' +- name: 'gcr.io/overleaf-ops/cloud-builder' + args: + - 'test_acceptance' + env: + - 'DOCKER_COMPOSE_FLAGS=-f docker-compose.ci.yml' + - 'BUILD_NUMBER=$SHORT_SHA' + - 'BRANCH_NAME=$BRANCH_NAME' +images: + - 'gcr.io/$PROJECT_ID/clsi:${BRANCH_NAME}-${SHORT_SHA}'