From 6e053a5cf22d5fdbed55765c511e912a3121fd9f Mon Sep 17 00:00:00 2001 From: Mark Solters Date: Sun, 28 Jul 2019 23:38:49 -0400 Subject: [PATCH] Makefile respects PROJECT_ID --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3172165..53bd2f9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ repo=app-top shorthash=$(SHORT_SHA) registry=gcr.io/$(PROJECT_ID) +projectID=$(PROJECT_ID) base=$(registry)/$(repo) branch=$${BRANCH_NAME:-`git rev-parse --abbrev-ref HEAD`} image=$(base):$(shorthash) @@ -10,7 +11,7 @@ image=$(base):$(shorthash) all: build release skaffold-run: - ./skaffold.sh + PROJECT_ID=$(projectID) ./skaffold.sh DOCKER_REPO=$(registry) GIT_HASH=$(shorthash) bash kustomize.sh DOCKER_REPO=$(registry) GIT_HASH=$(shorthash) skaffold run