Fixed version string
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m8s

This commit is contained in:
2025-04-18 12:01:47 +02:00
parent 7fb8cb9c60
commit efbec94c56
7 changed files with 31 additions and 15 deletions

View File

@@ -17,12 +17,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Get Git commit timestamps
run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
- name: Set timestamp and release version
run: |
echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
git fetch --prune --unshallow --tags
echo "RELEASE_VERSION=$(git describe --always --dirty='--modified')" >> $GITHUB_ENV
echo $GITHUB_ENV
- name: Login to registry
uses: docker/login-action@v3
@@ -67,6 +68,8 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
"RELEASE_VERSION=${{ env.RELEASE_VERSION }}"
env:
SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}