Fix dump csv #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
name: Backend Continuous Integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cd: | |
name: Continuous Delivery | |
runs-on: ubuntu-latest | |
needs: ci | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: executing remote ssh commands using password | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
password: ${{ secrets.SSH_PASSCODE }} | |
port: ${{ secrets.SSH_PORT }} | |
script: | | |
cd /diskb/home/backend | |
git pull origin main | |
/home/ubuntu/start_uspolis_back.sh >> /home/ubuntu/script_log.log 2>&1 | |
- name: Notify Command Success | |
run: echo "Command executed on ${{ secrets.HOST }} successfully!" | |