From ad62ed4516380565929f02c99a5d9c0889e94ea3 Mon Sep 17 00:00:00 2001 From: Shayon Mukherjee Date: Sat, 16 Nov 2024 09:34:39 -0500 Subject: [PATCH] Fix timestamp --- .github/workflows/release-and-docker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-and-docker.yml b/.github/workflows/release-and-docker.yml index 42d65f9..dceb06c 100644 --- a/.github/workflows/release-and-docker.yml +++ b/.github/workflows/release-and-docker.yml @@ -63,6 +63,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set build timestamp + id: timestamp + run: echo "timestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT + - name: Build and push (shayonj) uses: docker/build-push-action@v5 with: @@ -74,7 +78,7 @@ jobs: build-args: | VERSION=${{ github.ref_name }} COMMIT=${{ github.sha }} - DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') + DATE=${{ steps.timestamp.outputs.timestamp }} - name: Extract metadata (pgflo) id: meta_pgflo @@ -103,4 +107,4 @@ jobs: build-args: | VERSION=${{ github.ref_name }} COMMIT=${{ github.sha }} - DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') + DATE=${{ steps.timestamp.outputs.timestamp }}