From bdc36e2eeccf911116da7bcbb76b2ac780c3054f Mon Sep 17 00:00:00 2001 From: zurdi Date: Fri, 11 Aug 2023 09:30:16 +0200 Subject: [PATCH] branch name added to build local image script --- docker/build_local_image.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/build_local_image.sh b/docker/build_local_image.sh index 29342fc2d..fb96ec6d4 100755 --- a/docker/build_local_image.sh +++ b/docker/build_local_image.sh @@ -1,4 +1,6 @@ #!/bin/bash VERSION=$(cat .romm-version) -docker build -t zurdi15/romm:local-${VERSION} . --file ./docker/Dockerfile +branch_name="$(git symbolic-ref HEAD 2>/dev/null)" +branch_name=${branch_name##refs/heads/} +docker build -t zurdi15/romm:local-${VERSION}-${branch_name} . --file ./docker/Dockerfile