Skip to content

Commit

Permalink
Merge pull request #1858 from devops-infra/bugfix/gcp-cli
Browse files Browse the repository at this point in the history
Handle new GCP CLI versioning
  • Loading branch information
ChristophShyper authored Nov 6, 2023
2 parents 7346fb4 + 10e86a6 commit b3e8833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TG_LATEST := $(shell curl -LsS https://api.github.com/repos/gruntwork-io/terragr
VERSION := tf-$(TF_VERSION)-tg-$(TG_VERSION)
VERSION_LATEST := tf-$(TF_LATEST)-tg-$(TG_LATEST)
AWS_LATEST := $(shell curl -LsS https://api.github.com/repos/aws/aws-cli/tags | jq -r .[].name | head -1)
GCP_LATEST := $(shell curl -LsS https://cloud.google.com/sdk/docs/install | grep -e "curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli" | head -1 | sed 's/curl.*cli-//; s/-linux.*//')
GCP_LATEST := $(shell curl -LsS https://cloud.google.com/sdk/docs/install\#linux | grep -o 'google-cloud-cli-[0-9.]\+' | head -1 | sed 's/google.*cli-//')

# Other variables and constants
CURRENT_BRANCH := $(shell echo $(GITHUB_REF) | sed 's/refs\/heads\///')
Expand Down

0 comments on commit b3e8833

Please sign in to comment.