From 5b326ecb4f85fa2386533a3d40f831a3ea7b0007 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Tue, 21 Feb 2023 20:47:34 -0500 Subject: [PATCH] remove v from version string --- Dockerfile | 2 +- scripts/build_web_vault.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7247175..fd1cf9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,7 +53,7 @@ WORKDIR /vault/apps/web RUN npm run dist:oss:selfhost RUN printf '{"version":"%s"}' \ - $(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/dani-garcia/bw_web_builds.git 'v*' | tail -n1 | grep -Eo '[^\/]*$') \ + $(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/dani-garcia/bw_web_builds.git 'v*' | tail -n1 | grep -Eo '[^\/v]*$') \ > build/vw-version.json # Delete debugging map files, optional diff --git a/scripts/build_web_vault.sh b/scripts/build_web_vault.sh index 7cea847..061b903 100755 --- a/scripts/build_web_vault.sh +++ b/scripts/build_web_vault.sh @@ -30,7 +30,7 @@ npm run dist:oss:selfhost # Create vw-version.json with the latest tag from the remote repo. printf '{"version":"%s"}' \ - "$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/dani-garcia/bw_web_builds.git 'v*' | tail -n1 | grep -Eo '[^\/]*$')" \ + "$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/dani-garcia/bw_web_builds.git 'v*' | tail -n1 | grep -Eo '[^\/v]*$')" \ > build/vw-version.json popd