Skip to content

Updated workflows

Updated workflows #47

Workflow file for this run

name: Deploying to VPS
on:
push:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Deploy 🚀
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
username: ${{ secrets.SSH_USER }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: |
cd ./deploy-main/${{ github.event.repository.name }}
git pull
docker container rm -f cyscom-bot || true
docker image rm -f cyscom-bot || true
docker build -t cyscom-bot --quiet .
docker run -d \
--name cyscom-bot \
--restart always \
--env-file ./../.env.bot \
cyscom-bot