From 9b901766e306747a8b8095f2e39a894acb623489 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 27 May 2022 00:02:11 -0700 Subject: [PATCH] trying to fix docker build, so it includes git sha info. --- .github/workflows/docker-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index fc3247a..d1defe4 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -106,7 +106,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - GIT_VERSION=${{ github.ref_type == 'tag' && github.ref_name || github.ref_name + '#' + github.sha }} + GIT_VERSION=${{ github.ref_type == 'tag' && github.ref_name || join([github.ref_name, '#', github.sha], '') }} cache-from: type=gha cache-to: type=gha,mode=max omnibus: @@ -154,6 +154,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - GIT_VERSION=${{ github.ref_type == 'tag' && github.ref_name || github.ref_name + '#' + github.sha }} + GIT_VERSION=${{ github.ref_type == 'tag' && github.ref_name || join([github.ref_name, '#', github.sha], '') }} cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file