Skip to content

Commit

Permalink
final clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-daw committed Mar 30, 2024
1 parent 1a0e061 commit 5c3c54d
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 @@ -73,6 +73,6 @@ jobs:
run: |
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ec2-user@${{ secrets.EC2_INSTANCE_IP }} "\
docker pull ${{ env.IMAGE_NAME }}:${{ env.VERSION_TAG }} && \
docker stop my_container || true && \
docker rm my_container || true && \
docker stop ${{ env.IMAGE_NAME }} || true && \
docker rm ${{ env.IMAGE_NAME }} || true && \
docker run --name ${{ env.IMAGE_NAME }} --detach --rm -p 80:8080 ${{ env.IMAGE_NAME }}:${{ env.VERSION_TAG }}"

0 comments on commit 5c3c54d

Please sign in to comment.