Skip to content

Commit

Permalink
Abort if releasing not on release branch
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Oct 7, 2024
1 parent 44d516f commit 71859f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions util/cron/test-docker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ update_all_images() {
if [ -n "$RELEASE_VERSION" ]
then
log_info "Building and pushing nightly and release-tagged images for version: $RELEASE_VERSION"
if [ $(git rev-parse --abbrev-ref HEAD) != "release/$RELEASE_VERSION" ]
then
log_error "Not on release branch for version $RELEASE_VERSION, aborting"
exit 1
fi
else
log_info "Building and pushing nightly images"
fi
Expand Down

0 comments on commit 71859f0

Please sign in to comment.