Skip to content

Commit

Permalink
Merge pull request #582 from hakman/patch-4
Browse files Browse the repository at this point in the history
Don't update latest tag when uploading artifacts
  • Loading branch information
k8s-ci-robot authored Mar 8, 2023
2 parents 96966ee + 2fe78ec commit a060a89
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ UPLOAD ?= $(OUTPUT)/upload
GCS_LOCATION ?= gs://k8s-staging-provider-aws/releases/
GCS_URL = $(GCS_LOCATION:gs://%=https://storage.googleapis.com/%)
BINARY_GIT_VERSION := $(shell git describe --tags --match='v*')
LATEST_FILE ?= latest-tag.txt

.PHONY: aws-cloud-controller-manager
aws-cloud-controller-manager:
Expand Down Expand Up @@ -200,15 +199,9 @@ gcs-upload: gsutil copy-bins-for-upload
@echo "== Uploading provider-aws =="
gsutil -h "Cache-Control:private, max-age=0, no-transform" -m cp -n -r ${UPLOAD}/provider-aws/* ${GCS_LOCATION}

# gcs-upload-tag runs gcs-upload to upload, then uploads a version-marker to LATEST_FILE
.PHONY: gcs-upload-and-tag
gcs-upload-and-tag: gsutil gcs-upload
echo "${GCS_URL}-${BINARY_GIT_VERSION}" > ${UPLOAD}/${LATEST_FILE}
gsutil -h "Cache-Control:private, max-age=0, no-transform" cp ${UPLOAD}/${LATEST_FILE} ${GCS_LOCATION}/${LATEST_FILE}

# CloudBuild artifacts
# We hash some artifacts, so that we have can know that they were not modified after being built.
.PHONY: cloudbuild-artifacts
cloudbuild-artifacts: gcs-upload-and-tag
cloudbuild-artifacts:
cd ${UPLOAD}/provider-aws/${BINARY_GIT_VERSION}/; find . -type f | sort | xargs sha256sum > ${OUTPUT}/files.sha256
cd ${OUTPUT}/; find . -name *.sha256 | sort | xargs sha256sum > ${OUTPUT}/cloudbuild_output

0 comments on commit a060a89

Please sign in to comment.