Fix cannot get correct version

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

Signed-off-by: 0x7d274284 <112329548+0x7d274284@users.noreply.github.com>
This commit is contained in:
0x7d274284 2023-11-12 22:19:20 +08:00
parent 50036924e8
commit 2fe7d1705f

View File

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