ci(docker): set version based on git metadata

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-08-29 20:39:38 +00:00
parent c81c21478a
commit 492d9b374e

View File

@@ -37,6 +37,10 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set version
run: |
echo "VERSION=$(git describe --tags --always --dirty) >> $GITHUB_ENV
- name: Build and push
id: build
uses: docker/bake-action@76f9fa3a758507623da19f6092dc4089a7e61592 # v6.6.0
@@ -46,4 +50,3 @@ jobs:
sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max
set: ""