fix: error with no closed session; ref: better logging #50
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: Bots CI | |
on: | |
push | |
jobs: | |
deploy: | |
name: "Deploy bots service" | |
runs-on: "ubuntu-latest" | |
environment: production | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
steps: | |
- name: Deploy | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ vars.SSH_HOST }} | |
username: ${{ vars.SSH_USER }} | |
key: ${{ secrets.SSH_KEY }} | |
script_stop: true | |
script: | | |
cd ${{ vars.PROJECT_DIR }} | |
docker compose --env-file=.env down | |
git stash | |
git checkout main | |
git pull origin main | |
docker compose --env-file=.env up --build -d |