fix build script using oldest tag instead of newest

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-10-29 17:17:45 -04:00
parent a069586179
commit 62d4856f7a
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -1,7 +1,7 @@
#!/bin/bash
IMAGE=${IMAGE:-"thealmightydrawingtablet/nfs-krb"}
VERSION=$(git for-each-ref refs/tags --sort=-taggerdate --format='%(refname:short)' --count=1)
VERSION=$(git tag --sort=-committerdate | head -n 1)
docker build --progress=plain -t "${IMAGE}:alpine" -t "${IMAGE}:${VERSION}-alpine" .
docker build --progress=plain -t "${IMAGE}:ubuntu" -t "${IMAGE}:${VERSION}-ubuntu" -f ./Dockerfile.ubuntu .