From 891696f9494fa634f5965fdcaf8d6043407619f8 Mon Sep 17 00:00:00 2001 From: Iiro Niinikoski Date: Mon, 11 Mar 2019 23:46:25 +0100 Subject: [PATCH 1/6] Push. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c987928..0434597 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ The best website ever. + + From 9b4e27e792ba704eabd74d44cb88537efc0e94c6 Mon Sep 17 00:00:00 2001 From: Iiro Niinikoski Date: Mon, 11 Mar 2019 23:49:25 +0100 Subject: [PATCH 2/6] Push 2. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0434597..84a6fe7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ The best website ever. + From 0b1f2cc1b337a6ef1f64929dc13d268510055cde Mon Sep 17 00:00:00 2001 From: Iiro Niinikoski Date: Mon, 11 Mar 2019 23:53:58 +0100 Subject: [PATCH 3/6] Added the subs. --- cloudbuild.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 84d1464..9476ec6 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,11 +1,14 @@ steps: # build the container image - name: 'gcr.io/cloud-builders/docker' - args: ['build', '-t', 'gcr.io/$PROJECT_ID/$_SERVICE_NAME]', '.'] + args: ['build', '-t', 'gcr.io/$PROJECT_ID/$_SERVICE', '.'] # push the container image to Container Registry - name: 'gcr.io/cloud-builders/docker' - args: ['push', 'gcr.io/$PROJECT_ID/$_SERVICE_NAME]'] + args: ['push', 'gcr.io/$PROJECT_ID/$_SERVICE'] # Deploy container image to Cloud Run - name: 'gcr.io/cloud-builders/gcloud' - args: ['alpha', 'run', 'deploy', '$_SERVICE-NAME', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE_NAME', '--region', '$_REGION'] - images: ['gcr.io/$PROJECT_ID/$_SERVICE_NAME'] \ No newline at end of file + args: ['alpha', 'run', 'deploy', '$_SERVICE', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE', '--region', '$_REGION'] + images: ['gcr.io/$PROJECT_ID/$_SERVICE'] + substitutions: + _SERVICE: hello-web # service name + _REGION: us-central1 # region \ No newline at end of file From 12a202250621d3a14ac401da47aa861c7719a798 Mon Sep 17 00:00:00 2001 From: Iiro Niinikoski Date: Mon, 11 Mar 2019 23:56:36 +0100 Subject: [PATCH 4/6] Pah. --- cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 9476ec6..2278f87 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -7,7 +7,7 @@ args: ['push', 'gcr.io/$PROJECT_ID/$_SERVICE'] # Deploy container image to Cloud Run - name: 'gcr.io/cloud-builders/gcloud' - args: ['alpha', 'run', 'deploy', '$_SERVICE', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE', '--region', '$_REGION'] + args: ['alpha', 'run', 'deploy', '$_SERVICE', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE', '--region', '${_REGION}'] images: ['gcr.io/$PROJECT_ID/$_SERVICE'] substitutions: _SERVICE: hello-web # service name From cd58bfec9899670afea46ef8a3169d90627df78a Mon Sep 17 00:00:00 2001 From: Iiro Niinikoski Date: Mon, 11 Mar 2019 23:57:39 +0100 Subject: [PATCH 5/6] Poh. --- cloudbuild.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 2278f87..70e1ab6 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -10,5 +10,5 @@ args: ['alpha', 'run', 'deploy', '$_SERVICE', '--image', 'gcr.io/$PROJECT_ID/$_SERVICE', '--region', '${_REGION}'] images: ['gcr.io/$PROJECT_ID/$_SERVICE'] substitutions: - _SERVICE: hello-web # service name - _REGION: us-central1 # region \ No newline at end of file + _SERVICE: hello-web # service name + _REGION: us-central1 # region \ No newline at end of file From bf4541f5b8b38d3c3a32ff2b14ce7ca366f179b4 Mon Sep 17 00:00:00 2001 From: Iiro Niinikoski Date: Tue, 12 Mar 2019 00:02:18 +0100 Subject: [PATCH 6/6] Poh 2. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 84a6fe7..90b8abf 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ The best website ever. +