From: Marcel van der Veldt Date: Sun, 1 Nov 2020 08:10:32 +0000 (+0100) Subject: Update docker-build-multiarch.yml X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=82d84f00c8b76e75f8f1c2eb79c7833e4f9549c1;p=music-assistant-server.git Update docker-build-multiarch.yml --- diff --git a/.github/workflows/docker-build-multiarch.yml b/.github/workflows/docker-build-multiarch.yml index 8d90c592..31145fc7 100644 --- a/.github/workflows/docker-build-multiarch.yml +++ b/.github/workflows/docker-build-multiarch.yml @@ -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}