Version: v0.0.0-...-a60ffdc Latest Latest

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

Go to latest
Published: Aug 29, 2020 License: Unlicense Imports: 8 Imported by: 0




This section is empty.


This section is empty.


func Deploy

func Deploy(d Deployment) error

Deploy executes a specific deployment configuration.

func Validate

func Validate(d Deployment) error

Validate validates a specified deployment configuration.


type Deployment

type Deployment struct {
	// The secret for checking the integrity of the request.
	Secret string `yaml:"secret,omitempty" json:"secret,omitempty"`
	// The username of the user that will perform the deployment.
	User string `yaml:"user,omitempty" json:"user,omitempty"`
	// The repository of the project that will be deployed.
	Repository string `yaml:"repository,omitempty" json:"repository,omitempty"`
	// The branch that will be deployed.
	Branch string `yaml:"branch,omitempty" json:"branch,omitempty"`
	// The path where the deployment will take place.
	Path string `yaml:"path,omitempty" json:"path,omitempty"`
	// Any script that should be ran before the deployment.
	BeforeScript string `yaml:"before_script,omitempty" json:"before_script,omitempty"`
	// Any script that should be ran after the deployment.
	AfterScript string `yaml:"after_script,omitempty" json:"after_script,omitempty"`

Deployment is the specific deployment configuration.

func FindMatching

func FindMatching(list []Deployment, req request.Request) Deployment

FindMatching searches for a matching deployment in the YAML configuration file when parsing the request.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL