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

- Ensure 'latest' always points to the most recent stable version
- Address issue #2730: Release "latest" tag when pushing image to DockerHub
This commit is contained in:
r.e.e.c.h.e.e
2024-07-04 11:06:54 +01:00
committed by GitHub
parent 90a68ca816
commit d894347f9b

View File

@@ -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