2023-11-27 13:52:44 +01:00
|
|
|
#! /bin/bash
|
|
|
|
set -ex
|
2025-08-08 10:46:34 +02:00
|
|
|
|
|
|
|
GIT_TAG=$(git describe --always --dirty)
|
|
|
|
|
2023-11-27 13:52:44 +01:00
|
|
|
case "$1" in
|
2025-08-08 10:46:34 +02:00
|
|
|
commit) tag=$GIT_TAG ;;
|
2023-11-27 13:52:44 +01:00
|
|
|
"") tag=latest ;;
|
|
|
|
*) tag=$1 ;;
|
|
|
|
esac
|
2025-08-08 10:46:34 +02:00
|
|
|
docker build -t novit.tech/direktil/local-server:$tag . --build-arg GIT_TAG=$GIT_TAG
|