feat: add Docker configuration and automated deployment workflows for VPS orchestration

This commit is contained in:
MythEclipse
2026-05-17 21:23:50 +07:00
parent 0c7930bd01
commit f35710db3f
5 changed files with 141 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Deploy to VPS
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
key: ${{ secrets.VPS_SSH_KEY }}
script: |
# Modify this path to where your project is stored on the VPS
cd /opt/imphenbot || exit
# Pull latest changes
git pull origin main
# Build and restart containers
docker-compose up -d --build