From 20a16d923cdc4a3c6249e2368c638d34796ab627 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Thu, 7 Aug 2025 00:12:35 +0300 Subject: [PATCH] Get the image tag from supplied ref We need to pass the ref used in the workflow. If we supply a tag, we should just get that same tag. If we supply a branch, we should get the latest release from that branch. Signed-off-by: Gabriel Adrian Samfira --- .github/workflows/build-and-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 35560e67..8226039f 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -48,7 +48,7 @@ jobs: if [ "$GH_REF" == "main" ]; then IMAGE_TAG="nightly" else - IMAGE_TAG=$(git describe --tags --match='v[0-9]*' --always) + IMAGE_TAG=$(git describe --tags --match='v[0-9]*' --always ${GH_REF}) fi docker buildx build \ --provenance=false \