Files
project-afterlife/.github/workflows/deploy.yml
consultoria-as 449c02eadc
Some checks failed
Deploy Multi-VM / Deploy VM Web (push) Has been cancelled
Deploy Multi-VM / Deploy VM Auth (push) Has been cancelled
Deploy Multi-VM / Deploy Game Servers (docker-compose.fusionfall.yml, VM_FUSIONFALL_HOST, VM_FUSIONFALL_SSH_KEY, VM_FUSIONFALL_USER, fusionfall) (push) Has been cancelled
Deploy Multi-VM / Deploy Game Servers (docker-compose.maple2.yml, VM_MAPLE2_HOST, VM_MAPLE2_SSH_KEY, VM_MAPLE2_USER, maple2) (push) Has been cancelled
Deploy Multi-VM / Deploy Game Servers (docker-compose.minecraft.yml, VM_MINECRAFT_HOST, VM_MINECRAFT_SSH_KEY, VM_MINECRAFT_USER, minecraft) (push) Has been cancelled
Deploy Multi-VM / Deploy Game Servers (docker-compose.retro.yml, VM_RETRO_HOST, VM_RETRO_SSH_KEY, VM_RETRO_USER, retro) (push) Has been cancelled
feat: phase 3 redesign, game images, auth system, vm guides, service isolation
- Redesign all internal pages to warm/gold aesthetic (catalog, game detail,
  documentary, about, donate, community, guides, contact, server-status,
  login, profile, admin, not-found)
- Add real cover images for all 4 games via Strapi CMS with getImageUrl helper
- Integrate NextAuth v5 with Authentik OIDC authentication
- Add new public pages: community, guides, contact, server-status
- Add new protected pages: login, profile, admin dashboard
- Remove legacy AFC/MercadoPago system entirely
- Add Docker Compose split files for service isolation (main, auth, fusionfall, nier)
- Add OpenFusion VM deployment configs (config.vm.ini, systemd service, README-VM)
- Add NieR Reincarnation server guide and desktop client guide
- Add architecture docs for multi-VM deployment
- Add healthcheck, SSE, contact, newsletter, admin API routes
- Add reusable UI components, skeleton loaders, activity feed, bookmark system
- Update deployment and game server documentation
2026-04-28 05:15:38 +00:00

86 lines
2.7 KiB
YAML

name: Deploy Multi-VM
on:
push:
branches: [main]
jobs:
deploy-web:
name: Deploy VM Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy to VM Web
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.VM_WEB_HOST }}
username: ${{ secrets.VM_WEB_USER }}
key: ${{ secrets.VM_WEB_SSH_KEY }}
script: |
cd /opt/project-afterlife
git pull origin main
cd docker
docker compose -f docker-compose.web.yml build
docker compose -f docker-compose.web.yml up -d
docker compose -f docker-compose.web.yml exec web npm run build
docker compose -f docker-compose.web.yml restart web
deploy-auth:
name: Deploy VM Auth
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy to VM Auth
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.VM_AUTH_HOST }}
username: ${{ secrets.VM_AUTH_USER }}
key: ${{ secrets.VM_AUTH_SSH_KEY }}
script: |
cd /opt/project-afterlife
git pull origin main
cd docker
docker compose -f docker-compose.auth.yml pull
docker compose -f docker-compose.auth.yml up -d
deploy-games:
name: Deploy Game Servers
runs-on: ubuntu-latest
strategy:
matrix:
include:
- vm: fusionfall
host_secret: VM_FUSIONFALL_HOST
user_secret: VM_FUSIONFALL_USER
key_secret: VM_FUSIONFALL_SSH_KEY
compose: docker-compose.fusionfall.yml
- vm: maple2
host_secret: VM_MAPLE2_HOST
user_secret: VM_MAPLE2_USER
key_secret: VM_MAPLE2_SSH_KEY
compose: docker-compose.maple2.yml
- vm: minecraft
host_secret: VM_MINECRAFT_HOST
user_secret: VM_MINECRAFT_USER
key_secret: VM_MINECRAFT_SSH_KEY
compose: docker-compose.minecraft.yml
- vm: retro
host_secret: VM_RETRO_HOST
user_secret: VM_RETRO_USER
key_secret: VM_RETRO_SSH_KEY
compose: docker-compose.retro.yml
steps:
- uses: actions/checkout@v4
- name: Deploy to ${{ matrix.vm }}
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets[matrix.host_secret] }}
username: ${{ secrets[matrix.user_secret] }}
key: ${{ secrets[matrix.key_secret] }}
script: |
cd /opt/project-afterlife
git pull origin main
cd docker
docker compose -f ${{ matrix.compose }} build
docker compose -f ${{ matrix.compose }} up -d