tag alpine image as latest
This commit is contained in:
parent
e12b8dc9a0
commit
2ac4b483ea
2
build.sh
2
build.sh
@ -4,7 +4,7 @@ IMAGE=${IMAGE:-"thealmightydrawingtablet/nfs-krb"}
|
|||||||
VERSION=$(git tag --sort=-committerdate | grep -vi debug | head -n 1)
|
VERSION=$(git tag --sort=-committerdate | grep -vi debug | head -n 1)
|
||||||
|
|
||||||
docker build --progress=plain -t "${IMAGE}:ubuntu" -t "${IMAGE}:${VERSION}-ubuntu" -f ./Dockerfile.ubuntu .
|
docker build --progress=plain -t "${IMAGE}:ubuntu" -t "${IMAGE}:${VERSION}-ubuntu" -f ./Dockerfile.ubuntu .
|
||||||
docker build --progress=plain -t "${IMAGE}:alpine" -t "${IMAGE}:${VERSION}-alpine" .
|
docker build --progress=plain -t "${IMAGE}:alpine" -t "${IMAGE}:${VERSION}-alpine" -t "${IMAGE}:latest" .
|
||||||
|
|
||||||
if [ "$1" == "push" ]; then
|
if [ "$1" == "push" ]; then
|
||||||
docker push --all-tags "${IMAGE}"
|
docker push --all-tags "${IMAGE}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user