diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index b8c8aa72..4413417e 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -36,7 +36,7 @@ jobs: - name: 'Build and push image' run: | az acr login -n ${{ secrets.ACR_NAME }} - export VERSION_TAG=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} + export VERSION_TAG=${GITHUB_REF#refs/heads/} export IMAGE_TAG=${{ secrets.ACR_NAME }}.azurecr.io/unlisted/farmai/terravibes/${{ matrix.image-name }}:$VERSION_TAG docker build . -f ./resources/docker/${{ matrix.dockerfile }} -t $IMAGE_TAG docker push $IMAGE_TAG