diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 925cb180..352698f6 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -25,6 +25,7 @@ jobs: echo ::set-output name=channel::"latest" echo ::set-output name=version::main_$(cat VERSION)-${GITHUB_SHA::6} elif [[ "$GITHUB_REF" == "refs/heads/"* ]]; then + echo ::set-output name=channel::${GITHUB_REF/refs\/heads\//}-"latest" echo ::set-output name=version::${GITHUB_REF/refs\/heads\//}-$(cat VERSION)-${GITHUB_SHA::6} elif [[ "$GITHUB_REF" == "refs/tags/"* ]]; then echo ::set-output name=channel::${GITHUB_REF/refs\/tags\//}