Categorygithub.com/daaku/ghdeploy
modulepackage
0.6.6
Repository: https://github.com/daaku/ghdeploy.git
Documentation: pkg.go.dev

# README

ghdeploy

Package ghdeploy provides an opinionated deployment process using GitHub & systemd.

# Packages

Package ghook provides functionality to unmarshal a JSON payload including verifying the signature for Github Hooks.
No description provided by the author
No description provided by the author

# Functions

EmailClient configures the email client used to send success or failure emails on deployment.
EmailFrom configures who the emails come from.
EmailTo configures who the emails go to.
EnableDirectHandler enables a second handler under the path /direct/ that accepts a POST request with a `release_tag` parameter and triggers the deploy process.
GithubAccount configures the Github account.
GithubHookSecret provides the hook secret, if one is set.
GithubRepo configures the Github repo.
GithubToken provides the Github API token.
HealthCheckPath configures the health check path.
HealthCheckProtocol must be one of tcp, http or https.
HealthCheckTimeout specifies the duration we wait to check if a new service is healthy.
New creates a new deployer.
PortBlue is the first of two ports.
PortGreen is the second of two ports.
ReleasesDir is where the last two releases will be stored.
SystemdServiceName configures the base name of the unit.

# Structs

Deployer handles deployment of new releases.

# Type aliases

Option configures the Deployer.