Update docker-build-multiarch.yml
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 1 Nov 2020 08:10:32 +0000 (09:10 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 1 Nov 2020 08:10:32 +0000 (09:10 +0100)
.github/workflows/docker-build-multiarch.yml

index 8d90c592581c8362851d3d2b08f4e12930ab0c78..31145fc78061b58d72082ffc0174c3587bdfa567 100644 (file)
@@ -26,11 +26,12 @@ jobs:
           DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/music-assistant
           VERSION=latest
           SHORTREF=${GITHUB_SHA::8}
+          MANUAL_TAG=${{ github.event.inputs.tag }}
 
           # If a manual tag was supplied, use that
-          if [[ -n $github.event.inputs.tag ]]; then
-            VERSION=${github.event.inputs.tag}
-            
+          if [[ -n $MANUAL_TAG ]]; then
+            VERSION=${MANUAL_TAG}
+
           # If this is git tag, use the tag name as a docker tag
           elif [[ $GITHUB_REF == refs/tags/* ]]; then
             VERSION=${GITHUB_REF#refs/tags/v}