Files
local-server/hack/docker-build
T

12 lines
246 B
Bash
Raw Normal View History

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
2026-05-07 23:41:29 +02:00
docker build --network=host -t novit.tech/direktil/local-server:$tag . --build-arg GIT_TAG=$GIT_TAG