mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
branch name added to build local image script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user