diff --git a/.automation/cleanup-docker.sh b/.automation/cleanup-docker.sh index 063af71f..a5603788 100755 --- a/.automation/cleanup-docker.sh +++ b/.automation/cleanup-docker.sh @@ -112,12 +112,7 @@ ValidateInput() ################################### # Remove non alpha-numberic chars # ################################### - BRANCH_NAME=$(echo "$BRANCH_NAME" | tr -cd '[:alnum:]') - - ############################################ - # Set the IMAGE_VERSION to the BRANCH_NAME # - ############################################ - IMAGE_VERSION="$BRANCH_NAME" + IMAGE_VERSION=$(echo "$IMAGE_VERSION" | tr -cd '[:alnum:]') else ############################################# # Image is 'latest' and we will not destroy #