Skip to content

Commit

Permalink
ci: publish latest-master-build docker image
Browse files Browse the repository at this point in the history
Previously, our automation published latest docker images using
`latest-v2x.x-build` tag. External automation that tracked the master
branch would need to update the tag, when we change the version.

This PR adds an extra step to tag the master branch builds with
`latest-master-build` docker tag.

Epic: none
Release note: None
  • Loading branch information
rail committed Jan 18, 2023
1 parent 4ec5a5f commit 3b2795f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ if [[ -n "${release_branch}" ]] ; then
log_into_gcloud
gcloud container images add-tag "${gcr_repository}:${build_name}" "${gcr_repository}:latest-${release_branch}-build"
fi
if [[ "$TC_BUILD_BRANCH" == "master" ]]; then
log_into_gcloud
gcloud container images add-tag "${gcr_repository}:${build_name}" "${gcr_repository}:latest-master-build"
fi
tc_end_block "Tag docker image as latest-build"


Expand Down

0 comments on commit 3b2795f

Please sign in to comment.