Skip to content

Remove bug from makefile #16

Remove bug from makefile

Remove bug from makefile #16

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
- 'feature/*'
workflow_dispatch: # allows manual trigger
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: make install
- name: Run tests
run: make test
- name: Test SSH connection to EC2
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
key: ${{ secrets.EC2_SSH_KEY }}
script: whoami
- name: Deploy to EC2
if: success() # only deploy if previous steps passed
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd /home/ubuntu/sentiment-mlops
git pull origin main
chmod +x ./deploy.sh
./deploy.sh