12 lines
231 B
Bash
Executable File
12 lines
231 B
Bash
Executable File
#! /bin/bash
|
|
set -ex
|
|
|
|
GIT_TAG=$(git describe --always --dirty)
|
|
|
|
case "$1" in
|
|
commit) tag=$GIT_TAG ;;
|
|
"") tag=latest ;;
|
|
*) tag=$1 ;;
|
|
esac
|
|
docker build -t novit.tech/direktil/local-server:$tag . --build-arg GIT_TAG=$GIT_TAG
|