Skip to content

feat (devops): Add CD pipeline for automatic deployment (#17) #3

feat (devops): Add CD pipeline for automatic deployment (#17)

feat (devops): Add CD pipeline for automatic deployment (#17) #3

Workflow file for this run

name: CD Pipeline
on:
push:
branches:
- prod
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy using ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
cd /root/job-market-analysis
git pull origin prod