Skip to content

Commit

Permalink
correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-daw committed Mar 30, 2024
1 parent 76dd524 commit 330c334
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
- name: Deploy to EC2
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 }}:${{ env.VERSION_TAG }} --detach --rm -p 80:8080 ${{ env.IMAGE_NAME }}:${{ env.VERSION_TAG }}"
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ec2-user@your-ec2-instance-ip "\
docker pull karimdaw/carbon-service:${{ env.VERSION_TAG }} && \
docker stop myCarbonServiceContainer || true && \
docker rm myCarbonServiceContainer || true && \
docker run --name myCarbonServiceContainer --detach --rm -p 80:8080 karimdaw/carbon-service:${{ env.VERSION_TAG }}"

0 comments on commit 330c334

Please sign in to comment.