Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgutgutia authored Dec 1, 2023
1 parent 9381577 commit f7dd0cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag shivamgutgutia/vcfgenerator:$(date +%s)
run: |
IMAGE_TAG=$(git rev-parse --short HEAD) # Get the short commit SHA
docker build . --file Dockerfile --tag shivamgutgutia/vcfgenerator:$IMAGE_TAG
- name: Push Docker image to Docker Hub
run: docker push shivamgutgutia/vcfgenerator:$(date +%s)
run: docker push shivamgutgutia/vcfgenerator:$IMAGE_TAG

0 comments on commit f7dd0cb

Please sign in to comment.