Skip to content

Commit

Permalink
fix: remove unix timestamp on docker build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aon committed Sep 30, 2024
1 parent c47c63a commit 1442a93
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/docker-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ jobs:
id: vars
run: echo "SHORT_SHA=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV

- name: Get current Unix time
id: unix_time
run: echo "UNIX_TIME=$(date +%s)" >> $GITHUB_ENV

- name: Build Docker image
id: build
uses: docker/build-push-action@v6
Expand All @@ -43,4 +39,4 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.SHORT_SHA }}-${{ env.UNIX_TIME }}
ghcr.io/${{ github.repository }}:${{ env.SHORT_SHA }}

0 comments on commit 1442a93

Please sign in to comment.