Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-daw committed Mar 30, 2024
1 parent 5c3c54d commit e3831f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 ${{ 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 }}"
docker stop my_app_container || true && \
docker rm my_app_container || true && \
docker run --name my_app_container --detach --rm -p 80:8080 ${{ env.IMAGE_NAME }}:${{ env.VERSION_TAG }}"

0 comments on commit e3831f2

Please sign in to comment.