branch name added to build local image script

This commit is contained in:
zurdi
2023-08-11 09:30:16 +02:00
parent e17af7b88f
commit bdc36e2eec

View File

@@ -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