File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 67
67
run : |
68
68
docker push ${{ secrets.DOCKER_HUB_USERNAME}}/text-classification-using-mlops:latest
69
69
70
+ - name : Deploy to EC2
71
+ if : success()
72
+
73
+ with :
74
+ host : ${{ secrets.EC2_HOST }}
75
+ username : ${{ secrets.EC2_USER }}
76
+ key : ${{ secrets.EC2_SSH_KEY }}
77
+ script : |
78
+ docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/text-classification-using-mlops:latest
79
+ docker stop my-app || true
80
+ docker rm my-app || true
81
+ docker run -p 80:5000 --name my-app \
82
+ -e DAGSHUB_PAT=${{ secrets.DAGSHUB_PAT }} \
83
+ ${{ secrets.DOCKER_HUB_USERNAME }}/text-classification-using-mlops:latest
Original file line number Diff line number Diff line change @@ -90,3 +90,4 @@ target/
90
90
venv
91
91
models
92
92
reports
93
+ mlruns
You can’t perform that action at this time.
0 commit comments