fix: update release tag handling in install script

- Enhanced the logic for setting the RELEASE_TAG environment variable based on the VERSION_TAG.
- Now supports specific version tags (e.g., v0.26.6) by setting RELEASE_TAG to "latest", while other tags (canary, feature/*) are used as-is.
This commit is contained in:
Mauricio Siu
2026-02-10 18:41:20 -06:00
parent 7a451c43cc
commit 2f7cdefc05

View File

@@ -261,7 +261,11 @@ install_dokploy() {
# Installation
# Set RELEASE_TAG environment variable for canary/feature versions
release_tag_env=""
if [ "$VERSION_TAG" != "latest" ]; then
if [[ "$VERSION_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
# Specific version (v0.26.6, v0.26.7, etc.) → latest
release_tag_env="-e RELEASE_TAG=latest"
elif [ "$VERSION_TAG" != "latest" ]; then
# canary, feature/*, etc. → use the tag as-is
release_tag_env="-e RELEASE_TAG=$VERSION_TAG"
fi