From c1fa269906bae833fa9a107419bf31379546918f Mon Sep 17 00:00:00 2001 From: Anna Rift Date: Mon, 7 Oct 2024 10:55:43 -0700 Subject: [PATCH] Clarify some comments Signed-off-by: Anna Rift --- util/cron/test-docker.bash | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/util/cron/test-docker.bash b/util/cron/test-docker.bash index 16e3dc53bdf..b7c3eed4d74 100755 --- a/util/cron/test-docker.bash +++ b/util/cron/test-docker.bash @@ -6,6 +6,8 @@ # # Assumes Docker is already running on the system, logged into an account with # appropriate permissions to push the images. +# + CWD=$(cd $(dirname $0) ; pwd) source $CWD/common.bash @@ -37,7 +39,7 @@ EOF # Args: # - image name without tag # - test script location -# - release version tag to use (optional, just 'nightly' otherwise) +# - release version tag to use (optional, builds nightly otherwise) update_image() { local baseImageName="$1" local script="$2" @@ -92,7 +94,7 @@ update_image() { # Build, test, and push all Chapel Docker images. # Args: -# - release version tag to use (optional, just 'nightly' otherwise) +# - release version tag to use (optional, builds nightly otherwise) update_all_images() { local release_tag="$1" @@ -117,8 +119,8 @@ update_all_images() { # Build and push nightly images update_all_images -# Build and push release images after ALL nightly builds have succeeded, if -# release tag was specified. +# Build and push release-tagged images, if RELEASE_VERSION was specified. +# Runs after all nightly images, to abort if any fail. if [ -n "$RELEASE_VERSION" ] then update_all_images "$RELEASE_VERSION"