feat: add bot-triggered deployment via /update deploy command
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user