fix build script using oldest tag instead of newest
This commit is contained in:
parent
a069586179
commit
62d4856f7a
2
build.sh
2
build.sh
@ -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 .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user