From 125e081fd876187683821873b869b1e722bdc2d9 Mon Sep 17 00:00:00 2001 From: callingmybluff Date: Sat, 5 Oct 2019 15:14:45 +0200 Subject: [PATCH] Attempting Google Run --- cloudbuild.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 00000000..eb4f4d2d --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,7 @@ +steps: +- name: 'gcr.io/cloud-builders/docker' + args: ['build', '--tag=gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '.'] +- name: 'gcr.io/cloud-builders/docker' + args: ["push", "gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}"] +- name: 'gcr.io/cloud-builders/gcloud' + args: ['beta', 'run', 'deploy', 'almeta-doccano', '--image', 'gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '--region', 'us-central1', '--memory', '2G', '--platform', 'managed', '--allow-unauthenticated']