]> git.openfl.eu Git - yampl.git/commitdiff
fix deploy script
authorFl_GUI <flor.guilini@hotmail.com>
Sun, 13 Apr 2025 17:01:06 +0000 (19:01 +0200)
committerFl_GUI <flor.guilini@hotmail.com>
Sun, 13 Apr 2025 17:01:06 +0000 (19:01 +0200)
deploy.sh

index a935448872f15f79cd931c731f7f2f48786b363c..446beb83c4b1fdc9cf3e152b7600f2358eeefbc1 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -64,7 +64,7 @@ echoSection ""
 if [ -z "$CONTAINER_REGISTRY_USERNAME$CONTAINER_REGISTRY_PASSWORD" ] ; then
   echoSection "skip"
 else
-  gitbranch=$(git rev-parse --abbrev-ref HEAD)
+  gitbranch=$(git branch --contains HEAD --format='%(refname:short)' | tail -n -1 | head -n 1
 
   newimage="containers.openfl.eu/local/yampl:$gitbranch"
   podman tag $image $newimage