Files
romm/docker/build_local_image.sh

7 lines
256 B
Bash
Executable File

#!/bin/bash
branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
branch_name=${branch_name##refs/heads/}
branch_name=${branch_name//\//-} # Replace slashes with dashes
docker build -t "rommapp/romm-testing:local-${branch_name}" . --file ./docker/Dockerfile