Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionsCmd = &cli.Command{ Name: "actions", Usage: "Copies action files templates", Action: cmdtools.Wrap(ActionTemplates), }
View Source
var BackupCmd = &cli.Command{ Name: "backup", Usage: "Generate backup workflows for resources", Action: cmdtools.Wrap(BackupWorkflow), }
View Source
var Command = &cli.Command{ Name: "cicd", Usage: "Manage github workflows", Description: "Command for working with github CI/CD workflows", Commands: []*cli.Command{ ActionsCmd, BackupCmd, PRCmd, ReleaseCmd, }, }
Command defines the env commands for interacting and generating github workflow/action file artifacts.
View Source
var PRCmd = &cli.Command{ Name: "pr", Usage: "Creates PR workflows for apps and drift detection", Action: cmdtools.Wrap(PR), }
View Source
var ReleaseCmd = &cli.Command{ Name: "release", Usage: "Generate release workflow for apps", Action: cmdtools.Wrap(ReleaseWorkflow), }
Functions ¶
func ActionTemplates ¶
func ActionTemplates(_ context.Context, input cmdtools.CommandInput) error
ActionTemplates copies action.yaml files from the templates folder so services can use re-usable workflow helpers in CI/CD.
func BackupWorkflow ¶
func BackupWorkflow(_ context.Context, input cmdtools.CommandInput) error
BackupWorkflow creates backup workflows for every resource if the backup config is enabled.
func PR ¶ added in v0.0.2
func PR(_ context.Context, input cmdtools.CommandInput) error
PR generates all PR-related GitHub workflows including drift detection and app-specific PR workflows.
func ReleaseWorkflow ¶ added in v0.0.10
func ReleaseWorkflow(_ context.Context, input cmdtools.CommandInput) error
ReleaseWorkflow creates a release workflow for all apps with builds enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.