diff --git a/.github/workflows/reusable_image_build_push.yml b/.github/workflows/reusable_image_build_push.yml index 8c00f1177..1a1e65c66 100644 --- a/.github/workflows/reusable_image_build_push.yml +++ b/.github/workflows/reusable_image_build_push.yml @@ -101,7 +101,8 @@ jobs: # type=ref,event=tag # type=semver,pattern=v{{version}} # type=semver,pattern=v{{version}},value=${{ steps.fetch-latest-release-tags.outputs.tag_name }} - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', inputs.branch ) }} + # type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', inputs.branch ) }} + type=raw,value=latest,enable=${{ github.ref == format('refs/tags/{0}', steps.fetch-latest-release-tags.outputs.tag_name ) }} - name: Login to DockerHub # if: github.event_name != 'pull_request'