Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
another change
  • Loading branch information
hvgazula authored Jul 27, 2023
1 parent 68dfee1 commit 0d7bc43
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 @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile --tag my-image-name:$(date date +"%Y%m%d")

# Push the Docker image to Docker Hub (only if the PR is merged)
- name: Push Docker image
# if: github.event.pull_request.merged == true
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push my-image-name:$(date +%s)
docker push my-image-name:$(date date +"%Y%m%d")

0 comments on commit 0d7bc43

Please sign in to comment.