Skip to content

Commit

Permalink
Set the build date properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mieciu committed Jul 10, 2024
1 parent ff861d7 commit 8e8e6b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 8e8e6b7

Please sign in to comment.