diff --git a/Dockerfile b/Dockerfile index f747084..ac1ea36 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 '[^\/v]*$') \ + $(git -c 'versionsort.suffix=-' ls-remote --tags --refs --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 061b903..0eb63e9 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 '[^\/v]*$')" \ + "$(git -c 'versionsort.suffix=-' ls-remote --tags --refs --sort='v:refname' https://github.com/dani-garcia/bw_web_builds.git 'v*' | tail -n1 | grep -Eo '[^\/v]*$')" \ > build/vw-version.json popd