Documentation
¶
Overview ¶
Package deployinit implements scanning and patching of .circleci/config.yml to add deploy marker steps for circleci deploy init.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferEnvironment ¶
InferEnvironment returns an environment name from a job name, or "".
func IsDeployJob ¶
IsDeployJob returns true if jobName looks like a deploy job.
Types ¶
type DetectResult ¶
type DetectResult struct {
Jobs []JobInfo
HasDeploys bool // config already uses circleci/deploys orb
}
DetectResult holds the jobs found in the config.
func Detect ¶
func Detect(configPath string) (*DetectResult, error)
Detect reads configPath and returns detected deploy jobs.
type JobInfo ¶
type JobInfo struct {
Name string
Branch string // from workflow branch filter; "" means all/unknown
InferredEnv string // environment guessed from job name; "" if unknown
}
JobInfo describes a deploy-like job detected in the config.
type PatchInput ¶
PatchInput describes what to add to the config.
Click to show internal directories.
Click to hide internal directories.