add new docstring for sample service #38
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: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Access to repository and run the instructions | |
run: | | |
echo "$SERVER_SSH_KEY" > key.pem | |
chmod 600 key.pem | |
ssh -o StrictHostKeyChecking=no -i key.pem $SERVER_USERNAME@$SERVER_HOST<< EOF | |
cd arborator-backend | |
git pull origin main | |
source venv/bin/activate | |
pip3 install -r requirements.txt | |
sudo systemctl restart arborator-backend.service | |
EOF | |
env: | |
SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }} | |
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }} | |
SERVER_HOST: ${{ secrets.SERVER_HOST }} |