Fix KeyError caused by looking up thread IDs in 'showcase_channels_co… #63
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 to VPS | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy to VPS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Deploy to VPS | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.VPS_SSH_PRIVATE_KEY }} | |
REMOTE_HOST: ${{ secrets.VPS_HOST }} | |
REMOTE_USER: ${{ secrets.VPS_USER }} | |
SCRIPT_AFTER: | | |
cp ~/config.py config.py | |
cp ~/.env .env | |
docker compose stop | |
docker compose rm -f | |
sleep 60 | |
docker compose build --no-cache | |
docker compose up -d | |
docker image prune -af |