Skip to content

Commit 1c197e6

Browse files
committed
Add version and git info to the docker images to make the /info and /version endpoint work correctly
1 parent 648b6a6 commit 1c197e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v5
19+
with:
20+
# we need a full checkout to be able use git describe.
21+
# see https://github.com/actions/checkout/issues/1471
22+
fetch-depth: 0
23+
fetch-tags: true
1924

2025
- name: Set up Docker Buildx
2126
uses: docker/setup-buildx-action@v3
@@ -53,6 +58,11 @@ jobs:
5358
type=semver,event=tag,pattern={{version}}
5459
type=raw,event=workflow_dispatch,value=snapshot
5560
61+
- name: Save version info
62+
run: |
63+
git describe --exclude 'snapshot' | tee ./server/api/version.info
64+
git log -1 | tee ./server/api/git.info
65+
5666
- name: Build and push the stats gui image
5767
uses: docker/build-push-action@v6
5868
with:

0 commit comments

Comments
 (0)