From 00433bc8d180657ba55cc799f2e87cde5322b8d4 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 12 Mar 2020 03:17:15 -0400 Subject: [PATCH] Update cloudbuild. --- cloudbuild.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 50d092b..c5ff40c 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,9 +1,15 @@ steps: +- name: 'busybox' + args: + - sh + - -c + - | + echo '{"git": {"revisionId": "$REVISION_ID", "url": "git@github.com:pebble-dev/rebble-weather.git"}}' > source-context.json - name: 'gcr.io/cloud-builders/docker' args: - build - - "--tag=gcr.io/pebble-rebirth/weather:$TAG_NAME" + - "--tag=gcr.io/pebble-rebirth/weather:g$SHORT_SHA" - "--file=./Dockerfile.cloudrun" - . images: -- "gcr.io/pebble-rebirth/weather" +- "gcr.io/pebble-rebirth/weather:g$SHORT_SHA"