feat: add bot-triggered deployment via /update deploy command
Some checks failed
Deploy to Production / test (push) Failing after 20s
Deploy to Production / build (push) Has been skipped
Deploy to Production / deploy (push) Has been skipped

- Added Docker socket mount to docker-compose.prod.yml
- Added project directory mount for git operations
- Added performDeploy, isDeployAvailable methods to UpdateService
- Added /update deploy subcommand for Discord-triggered deployments
- Added deploy-related embeds to update.view.ts
This commit is contained in:
syntaxbullet
2026-01-30 14:26:38 +01:00
parent 73531f38ae
commit ebefd8c0df
4 changed files with 236 additions and 2 deletions

View File

@@ -39,7 +39,13 @@ services:
image: aurora-app:latest
ports:
- "127.0.0.1:3000:3000"
# NO source code volumes - production image is self-contained
# Volumes for bot-triggered deployments
volumes:
# Docker socket - allows bot to run docker compose commands
- /var/run/docker.sock:/var/run/docker.sock
# Project directory - allows git pull and rebuild
- .:/app/deploy
working_dir: /app
environment:
- NODE_ENV=production
- HOST=0.0.0.0
@@ -52,6 +58,8 @@ services:
- DISCORD_GUILD_ID=${DISCORD_GUILD_ID}
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
- DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}
# Deploy directory path for bot-triggered deployments
- DEPLOY_DIR=/app/deploy
depends_on:
db:
condition: service_healthy