From 0e7f254a67d9cf331c879bea8dfd2db93ee35e91 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 23 Apr 2024 14:04:13 +0200 Subject: [PATCH] Update publish-image.yml Offer "latest" for each branch --- .github/workflows/publish-image.yml | 1 + 1 file changed, 1 insertion(+) 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\//}