From 420ed3a06606b77295877b414e8b8f017a49802e Mon Sep 17 00:00:00 2001 From: Jonathan Bout Date: Thu, 28 Nov 2024 00:00:58 +0100 Subject: [PATCH] set version number to branch name --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 26f77e8..d25eceb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -82,7 +82,7 @@ jobs: build-args: | DOTNET_BUILD_PLATFORM=linux-arm64 # set version number to the version in the tag name if this is a release - VERSION_NUMBER=${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.ref.replace('refs/tags/v', '') || '1.0.0' }} + VERSION_NUMBER=$BRANCH_NAME # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker