3
deployment
Jonathan Miller edited this page 2026-07-14 16:17:08 -05:00

Deployment

Production deployment guide for MokoGIT.

Environments

Environment URL Image
Production git.mokoconsulting.tech mokogit:v1.26.1-moko.06.21.00
CDN cdn.mokoconsulting.tech (proxies to production)
Dev git.dev.mokoconsulting.tech dev build

Dev Deploy Gate

All deployments go through the dev environment first. The deploy-dev.yml workflow:

  1. Builds and deploys to dev environment
  2. Runs health check against dev
  3. Only after dev passes does production deployment proceed

Manual Deploy

# SSH to server
ssh -p 2918 mokoconsulting@git.mokoconsulting.tech

# Pull latest
cd /opt/git/source && git fetch origin main && git reset --hard origin/main

# Build
docker build --build-arg GOFLAGS='-p 1' --tag mokogit:TAGHERE -f Dockerfile .

# Update compose and restart
cd /opt/git && sed -i 's|mokogit:.*|mokogit:TAGHERE|' docker-compose.yml && docker compose up -d mokogit

Automated Deploy

CI/CD workflows handle deployment automatically on merge to main:

  1. deploy-dev.yml -- builds and deploys to dev
  2. Health check verifies dev is running
  3. deploy.yml -- deploys to production
  4. ci-issue-reporter.yml -- reports failures as issues

Authored by Jonathan Miller (@jmiller) - 2026-06-07, updated 2026-06-26