Skip to content

Deploy

Deploy #26

Workflow file for this run

jobs:
deploy:
name: Deploy bot
runs-on: ubuntu-latest
steps:
- name: Remote deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd ~/projects/pythonista-bot/
docker compose pull bot
docker compose up --build -d
username: ${{ secrets.SSH_USER }}
name: Deploy
on:
workflow_run:
workflows: ["Create and publish a Docker image"]
branches: [main]
types:
- completed