Skip to content

Commit

Permalink
Fix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
shayonj committed Nov 16, 2024
1 parent 2031003 commit ad62ed4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-and-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit ad62ed4

Please sign in to comment.