Skip to content

Create build.yml

Create build.yml #1

Workflow file for this run

name: Deploy Discord Bot
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: SSH and deploy
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/user/kami-music-bot
git pull
docker compose down
docker compose build --no-cache
docker compose up -d