Skip to content

Commit d894347

Browse files
Add 'latest' tag to Docker builds for stable releases only (OpenHands#2781)
- Ensure 'latest' always points to the most recent stable version - Address issue OpenHands#2730: Release "latest" tag when pushing image to DockerHub
1 parent 90a68ca commit d894347

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

containers/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if [[ -n $GITHUB_REF_NAME ]]; then
1616
major_version=$(echo "$GITHUB_REF_NAME" | cut -d. -f1)
1717
minor_version=$(echo "$GITHUB_REF_NAME" | cut -d. -f1,2)
1818
tags+=("$major_version" "$minor_version")
19+
tags+=("latest")
1920
fi
2021
sanitized=$(echo "$GITHUB_REF_NAME" | sed 's/[^a-zA-Z0-9.-]\+/-/g')
2122
OPEN_DEVIN_BUILD_VERSION=$sanitized

0 commit comments

Comments
 (0)