Skip to content

Commit 02174b4

Browse files
cagedmantisgopherbot
authored andcommitted
cmd/coordinator: add the project flag to the image build
This change specifies the project in the cloud build image command. For golang/go#56673 Change-Id: Ib275c2b42d4cf0930b1ac56be876ce0683643b6e Reviewed-on: https://go-review.googlesource.com/c/build/+/479836 Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Carlos Amedee <[email protected]> Auto-Submit: Carlos Amedee <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 8d0c364 commit 02174b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/coordinator/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ FORCE:
1111
MUTABLE_VERSION := latest
1212
VERSION := $(shell ./version.sh)
1313

14+
GCP_PROJECT_PROD := symbolic-datum-552
1415
IMAGE_STAGING := gcr.io/go-dashboard-dev/coordinator
15-
IMAGE_PROD := gcr.io/symbolic-datum-552/coordinator
16+
IMAGE_PROD := gcr.io/$(GCP_PROJECT_PROD)/coordinator
1617

1718
DOCKER_IMAGE=golang/coordinator
1819

@@ -24,7 +25,7 @@ docker-staging: docker
2425
docker tag $(DOCKER_IMAGE):$(VERSION) $(IMAGE_STAGING):$(MUTABLE_VERSION)
2526

2627
push-prod:
27-
gcloud builds submit --config ./cloudbuild.yaml --substitutions=TAG_NAME="$(VERSION)" ../../
28+
gcloud builds submit --project $(GCP_PROJECT_PROD) --config ./cloudbuild.yaml --substitutions=TAG_NAME="$(VERSION)" ../../
2829

2930
push-staging: docker-staging
3031
docker push $(IMAGE_STAGING):$(VERSION)

0 commit comments

Comments
 (0)