gon deploy

Deploy a Docker image to production. Rolling update with health checks and automatic rollback.

Usage

gon deploy production --tag=v1.0.0 # Deploy
gon deploy staging --tag=v1.0.0 # Deploy to staging
gon deploy production --rollback # Rollback to previous

What happens

  1. Pull image from GHCR
  2. Stop old containers
  3. Start new containers
  4. Wait for health check
  5. Run post-deploy commands (migrations, cache clear)