local-server/hack/docker-build

9 lines
183 B
Plaintext
Raw Normal View History

2023-11-27 12:52:44 +00:00
#! /bin/bash
set -ex
case "$1" in
commit) tag=$(git describe --always --dirty) ;;
"") tag=latest ;;
*) tag=$1 ;;
esac
docker build -t novit.tech/direktil/local-server:$tag .