Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Add 'latest' tag to Docker builds for stable releases only (#2781)

r.e.e.c.h.e.ed894347f9bcb
diff --git a/containers/build.sh b/containers/build.sh
index 5b17a25056..1ac069d951 100755
--- a/containers/build.sh
+++ b/containers/build.sh
@@ -16,6 +16,7 @@ if [[ -n $GITHUB_REF_NAME ]]; then
major_version=$(echo "$GITHUB_REF_NAME" | cut -d. -f1)
minor_version=$(echo "$GITHUB_REF_NAME" | cut -d. -f1,2)
tags+=("$major_version" "$minor_version")
+ tags+=("latest")
fi
sanitized=$(echo "$GITHUB_REF_NAME" | sed 's/[^a-zA-Z0-9.-]\+/-/g')
OPEN_DEVIN_BUILD_VERSION=$sanitized