From 8aa036c6f6de385e3c5130f671af8fe82cdb1ab0 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Wed, 22 Jan 2025 09:23:56 +0200 Subject: [PATCH] Use `github.ref_name` for codegate version The auto-generated tag was used to set the codegate version. This had relevant information, but is not the version we actually wanted to set. This instead uses github action context variables to set the version appropriately. For Releases (the trigger for the image publish job) the `ref_name` refers to the tag the release had attached. This is what's used. Signed-off-by: Juan Antonio Osorio --- .github/workflows/image-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/image-publish.yml b/.github/workflows/image-publish.yml index c4117d4e..a4f8cd8a 100644 --- a/.github/workflows/image-publish.yml +++ b/.github/workflows/image-publish.yml @@ -89,7 +89,7 @@ jobs: cache-to: type=gha,mode=max build-args: | LATEST_RELEASE=${{ env.LATEST_RELEASE }} - CODEGATE_VERSION=${{ steps.version-string.outputs.tag }} + CODEGATE_VERSION=${{ github.ref_name }} - name: Capture Image Digest id: image-digest run: |