Skip to content

Commit cd48e75

Browse files
committed
fix GHCR build
1 parent 7687457 commit cd48e75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
go-version: '1.23'
2525

2626
- name: Build Docker Image
27-
run: docker build --build-arg VERSION=$(git describe --tags --always) --build-arg BUILDTIME="$(date -R)" . -f build/Dockerfile -t ghcr.io/${{ github.repository }}:latest
27+
run: |
28+
git fetch --unshallow --tags
29+
BUILDTIME=$(date -R)
30+
docker build --build-arg VERSION=$(git describe --tags --always) --build-arg BUILDTIME='$BUILDTIME' . -f build/Dockerfile -t ghcr.io/${{ github.repository }}:latest
2831
2932
- name: Log in to GitHub Container Registry
3033
uses: docker/login-action@v2

0 commit comments

Comments
 (0)