Skip to content

Commit

Permalink
altered docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
hvgazula committed Jul 27, 2023
1 parent 9504e9c commit 73314e6
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 ./docker/Dockerfile --tag hvgazula/my-image-name:$(date +"%Y%m%d")
run: docker build -t hvgazula/test_image ./docker/Dockerfile

# 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 hvgazula/my-image-name:$(date +"%Y%m%d")
docker push hvgazula/test_image

0 comments on commit 73314e6

Please sign in to comment.