Skip to content

Commit

Permalink
Update cml.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush14rastogi authored Aug 27, 2023
1 parent 4d7374a commit b399315
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/cml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Model Training
env:
REPO_TOKEN: ${{ secrets.PAT }}
run: |
python src/dataIngestion.py
python src/preprocess.py
python src/train.py
echo "### Model Score" >> README.md
echo metrics.txt >> README.md
cml comment images/confusion_matrix.png --md >> README.md
continue-on-error: true
- name: Docker Image Build
run: |
echo "${{ secrets.DOCKERPW }}" | docker login -u "krisharyan36" --password-stdin
docker image build -t sdp:latest .
docker tag sdp:latest krisharyan36/sdp:latest
#docker image ls
docker push krisharyan36/sdp:latest
- name: Install OpenVPN
run: |
Expand All @@ -20,7 +42,7 @@ jobs:
config_file: .github/workflows/client.ovpn
username: ${{ secrets.OVPN_USERNAME }}
password: ${{ secrets.OVPN_PASSWORD }}
- name: Use SSH
- name: Deploying SDP app in K8s Clusters
uses: appleboy/ssh-action@master
with:
proxy_host: ${{ secrets.SERVER_HOST }}
Expand Down

0 comments on commit b399315

Please sign in to comment.