From 36fbda1bde7dffcf0ca98b65229a67794ff3fbba Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Mon, 16 Oct 2023 14:55:29 +0000 Subject: [PATCH] build: allow a 'v' prefix when using the main-unstable tag Signed-off-by: Niladri Halder --- nix/pkgs/images/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/pkgs/images/default.nix b/nix/pkgs/images/default.nix index 570743fc6..b909096ab 100644 --- a/nix/pkgs/images/default.nix +++ b/nix/pkgs/images/default.nix @@ -46,7 +46,7 @@ let # Script doesn't need to be used with main branch `--alias-tag `. # The repo chart is already prepared. if [[ "$(semver validate ${tag})" == "valid" ]] && - [[ ! ${tag} =~ ^([0-9]+\.[0-9]+\.[0-9]+-0-main-unstable(-[0-9]+){6}-0)$ ]]; then + [[ ! ${tag} =~ ^(v?[0-9]+\.[0-9]+\.[0-9]+-0-main-unstable(-[0-9]+){6}-0)$ ]]; then CHART_FILE=build/chart/Chart.yaml build/scripts/helm/publish-chart-yaml.sh --app-tag ${tag} --override-index "" fi chmod -w build/chart