Update .github/workflows/release.yml

Change how BUILD_TIME is derived

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2025-05-29 01:13:59 +02:00
committed by GitHub
parent cdc9815cee
commit 2e887a2b31

View File

@ -147,7 +147,7 @@ jobs:
annotations: ${{ steps.meta.outputs.labels }} annotations: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
VERSION=${{ github.ref_name }} VERSION=${{ github.ref_name }}
BUILD_TIME=${{ github.event.head_commit.timestamp }} BUILD_TIME=${{ github.event.head_commit.timestamp || github.event.repository.pushed_at }}
GIT_COMMIT=${{ github.sha }} GIT_COMMIT=${{ github.sha }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max