Skip to content

Commit

Permalink
Makefile respects PROJECT_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
msolters committed Jul 29, 2019
1 parent 14ee37a commit 6e053a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -3,14 +3,15 @@
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)

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

Expand Down

0 comments on commit 6e053a5

Please sign in to comment.