deploy-gate

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command deploy-gate refuses a deployment whose migration plan looks unsafe, before anything is applied.

Plan takes no advisory lock, writes nothing and needs no DDL privileges, so this is safe to run from CI against production with a read-only role.

export DATABASE_URL="postgres://postgres:postgres@localhost:5433/postgres?sslmode=disable"
go run ./examples/deploy-gate

Exits non-zero when the deployment should not proceed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL