Skip to content

Commit

Permalink
fix makefile auth (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ressetkk authored Sep 30, 2022
1 parent fbf662e commit e681f5f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ endif

FLAGS = -ldflags '-s -w -X github.com/kyma-project/cli/cmd/kyma/version.Version=$(VERSION)'

.PHONY: gcp-authenticate
gcp-authenticate:
ifdef $(GOOGLE_APPLICATION_CREDENTIALS)
gcloud auth activate-service-account --key-file "$(GOOGLE_APPLICATION_CREDENTIALS)"
endif

.PHONY: resolve
resolve:
go mod tidy -compat=1.18
Expand Down Expand Up @@ -76,9 +70,11 @@ archive:
.PHONY: upload-binaries
upload-binaries: gcp-authenticate
ifeq ($(STABLE), true)
gcloud auth activate-service-account --key-file "$(GOOGLE_APPLICATION_CREDENTIALS)"
gsutil cp bin/* $(KYMA_CLI_STABLE_BUCKET)
endif
ifeq ($(UNSTABLE), true)
gcloud auth activate-service-account --key-file "$(GOOGLE_APPLICATION_CREDENTIALS)"
gsutil cp bin/* $(KYMA_CLI_UNSTABLE_BUCKET)
endif

Expand Down

0 comments on commit e681f5f

Please sign in to comment.