diff --git a/Makefile b/Makefile index 094db90a73..014c217925 100644 --- a/Makefile +++ b/Makefile @@ -140,11 +140,11 @@ upload: kops version-dist aws s3 sync --acl public-read .build/upload/ ${S3_BUCKET} gcs-upload: version-dist - @echo "== Logging gcloud info ==" - @gcloud info @echo "== Uploading kops ==" gsutil -h "Cache-Control:private, max-age=0, no-transform" -m cp -n -r .build/upload/kops/* ${GCS_LOCATION} +# In CI testing, always upload the CI version. +gcs-publish-ci: VERSION := git-$(shell git describe --always) gcs-publish-ci: gcs-upload echo "${GCS_URL}/${VERSION}" > .build/upload/${LATEST_FILE} gsutil -h "Cache-Control:private, max-age=0, no-transform" cp .build/upload/${LATEST_FILE} ${GCS_LOCATION}