Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeexcoin authored Oct 14, 2024
1 parent 0ef8449 commit adcbb8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
password: ${{ secrets.DOCKER_PAT }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag coffeexdev/sales-listener:$(date +%s)
run: docker build . --file Dockerfile --tag coffeexdev/sales-listener:$(git rev-parse --short "$GITHUB_SHA") --tag coffeexdev/sales-listener:latest

- name: Push the docker image
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: docker push coffeexdev/sales-listener:$(date +%s) && docker push coffeexdev/sales-listener:latest
run: docker push coffeexdev/sales-listener:$(git rev-parse --short "$GITHUB_SHA") && docker push coffeexdev/sales-listener:latest

0 comments on commit adcbb8e

Please sign in to comment.