11 lines
415 B
Bash
11 lines
415 B
Bash
#!/bin/bash
|
|
|
|
IMAGE=${IMAGE:-"thealmightydrawingtablet/nfs-krb"}
|
|
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}:alpine" -t "${IMAGE}:${VERSION}-alpine" -t "${IMAGE}:latest" .
|
|
|
|
if [ "$1" == "push" ]; then
|
|
docker push --all-tags "${IMAGE}"
|
|
fi |