store: Deploy script for Discord Bot v2 production deploys (.scripts/deploy.sh)

This commit is contained in:
Cal Corum 2026-02-19 21:53:14 -06:00
parent 623bd62241
commit be5e72a08f

View File

@ -0,0 +1,40 @@
---
id: 5786f964-2fe4-4bab-bc79-d4fc16e4fad1
type: solution
title: "Deploy script for Discord Bot v2 production deploys (.scripts/deploy.sh)"
tags: [major-domo, deployment, bash, automation, discord-bot, akamai]
importance: 0.7
confidence: 0.8
created: "2026-02-20T03:53:14.314183+00:00"
updated: "2026-02-20T03:53:14.314183+00:00"
---
# Deploy Script for Discord Bot v2 Production Deploys
## Location
`discord-app-v2/.scripts/deploy.sh`
## What it does
Automates production deploys to the akamai server:
1. SSHes to `root@akamai` using `~/.ssh/cloud_servers_rsa`
2. Pulls latest `manticorum67/major-domo-discordapp:latest` image
3. Restarts the `discord-app` service via `docker compose up -d`
4. Waits 5 seconds
5. Shows container status, last 10 log lines, and running image digest
## Pre-deploy checks
- Dirty git working tree warning
- Branch/commit context display
- y/N confirmation prompt (skip with `-y` flag)
- Captures previous image digest before pulling
- Prints rollback command if image changed
## Key Details
- Production path: `/root/container-data/major-domo/`
- Container name: `major-domo-discord-app-1`
- Docker image: `manticorum67/major-domo-discordapp` (no dash between discord and app)
- SSH key: `~/.ssh/cloud_servers_rsa`
## Branch Note
Branch `feat/deploy-script` exists on remote but PR was closed — intended to be merged alongside a future production change.