Browse Source

Fix Dockerfile

Keep the .git folder at compile time to get the correct version

Signed-off-by: 0x7d274284 <[email protected]>
0x7d274284 1 year ago
parent
commit
7a679bc328
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/docker.yml

+ 2 - 0
.github/workflows/docker.yml

@@ -39,6 +39,8 @@ jobs:
         with:
           platforms: linux/386,linux/amd64,linux/arm64,linux/s390x
           target: dist
+          build-args: |
+            BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
           tags: |
             ${{ steps.tag.outputs.latest }}
             ${{ steps.tag.outputs.versioned }}