Initial commit #1
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 | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Deploy python bot | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{secrets.SSH_HOST}} | |
key: ${{secrets.SSH_KEY}} | |
username: ${{secrets.SSH_USERNAME}} | |
script: | | |
cd /var/www/pb_five_factor_model | |
git pull | |
docker build -t pb_five_factor_model . | |
docker rm -f pb_five_factor_model | |
docker run -d --env-file .env --name pb_five_factor_model --network network_local pb_five_factor_model | |