Skip to content

Commit

Permalink
Update docker-deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkylok committed May 12, 2024
1 parent 5e296df commit c7db4a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Build Docker image and push to ECR
run: |
docker build -t advanced-rag-image:latest .
docker tag advanced-rag-image:latest ${{ steps.login-ecr.outputs.registry }}/advanced-rag-image:latest
docker push ${{ steps.login-ecr.outputs.registry }}/advanced-rag-image:latest
docker tag advanced-rag-image:latest ${{ steps.login-ecr.outputs.registry }}/advancedrag:latest
docker push ${{ steps.login-ecr.outputs.registry }}/advancedrag:latest
- name: SSH into EC2 instance
uses: appleboy/ssh-action@master
Expand All @@ -39,9 +39,9 @@ jobs:
key: ${{ secrets.EC2_PRIVATE_KEY }}
port: ${{ secrets.EC2_PORT }}
script: |
docker pull ${{ steps.login-ecr.outputs.registry }}/advanced-rag-image:latest
docker pull ${{ steps.login-ecr.outputs.registry }}/advancedrag:latest
docker stop advanced-rag-demo || true
docker rm advanced-rag-demo || true
docker run -d --name advanced-rag-demo -p 80:8501 ${{ steps.login-ecr.outputs.registry }}/advanced-rag-image:latest
docker run -d --name advanced-rag-demo -p 80:8501 ${{ steps.login-ecr.outputs.registry }}/advancedrag:latest

0 comments on commit c7db4a3

Please sign in to comment.