Skip to content

Commit

Permalink
Update build-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m4xkub committed Oct 29, 2024
1 parent 45f58cf commit 8bfa48b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Delete Old version of Docker image
run: |
docker rmi her-feeling-server:latest || echo "Image not found, skipping deletion"
docker rmi ${{ secrets.DOCKER_USERNAME }}/her-feeling-server:latest || echo "Image not found, skipping deletion"
- name: Build Docker image
run: |
docker build -t her-feeling-server:latest .
docker build -t ${{ secrets.DOCKER_USERNAME }}/her-feeling-server:latest .
- name: Push Docker image
run: |
docker push her-feeling-server:latest
docker push ${{ secrets.DOCKER_USERNAME }}/her-feeling-server:latest

0 comments on commit 8bfa48b

Please sign in to comment.