Merge branch 'master' of https://github.com/taimast/AiogramTemplate #65
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: Build and Deploy to Server | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Deploy to Server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SERVER_IP }} | |
username: ${{ secrets.SERVER_USERNAME }} | |
# key: ${{ secrets.SSH_PRIVATE_KEY }} | |
password: ${{ secrets.SERVER_PASSWORD }} | |
script: | | |
cd /home/src | |
git pull | |
docker compose stop | |
docker compose up --build -d | |
# todo L1 TODO 21.05.2023 15:31 taima: Add python syntax check to CI |