Moved deploy-flask-api.yml to workflows. #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: Deploy | ||
on: | ||
push: | ||
branches: [main] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
-name: Deploy Flask app | ||
uses: appleboy/[email protected] | ||
with: | ||
host : ${{secrets.SSH_HOST}} | ||
key: ${{secrets.SSH_KEY}} | ||
username: ${{secrets.SSH_USERNAME}} | ||
script: | ||
cd Tests | ||
git clone https://github.com/YaroslavKSE/Tests.git | ||
flask --app api run --host=0.0.0.0 --port=80 | ||
echo "Deployment to Digital ocean was successfull" | ||