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