From 8e8e6b7c367e49b8d546db4ba7e4f2d34bcb8445 Mon Sep 17 00:00:00 2001 From: przemyslaw Date: Wed, 10 Jul 2024 17:32:01 +0200 Subject: [PATCH] Set the build date properly --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 820d444b0..0332e8ae3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,6 +46,9 @@ jobs: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PAT }} + - name: Set the build date + run: echo QUESMA_BUILD_DATE=$(git --no-pager log -1 --date=format:'%Y-%m-%d' --format="%ad") >> $GITHUB_ENV + - name: Build and export uses: docker/build-push-action@v6 with: @@ -60,7 +63,7 @@ jobs: build-args: | QUESMA_BUILD_SHA=${{ github.sha }} QUESMA_VERSION=${{ github.event.inputs.VERSION }} - QUESMA_BUILD_DATE=${{ github.event.head.timestamp }} + QUESMA_BUILD_DATE=${{ env.QUESMA_BUILD_DATE }} platforms: linux/amd64,linux/arm64 env: DOCKER_BUILD_SUMMARY: false