Documentation
¶
Index ¶
- Variables
- func ActionTemplates(_ context.Context, input cmdtools.CommandInput) error
- func BackupWorkflow(_ context.Context, input cmdtools.CommandInput) error
- func PR(_ context.Context, input cmdtools.CommandInput) error
- func ReleaseWorkflow(_ context.Context, input cmdtools.CommandInput) error
- func VMMaintenanceWorkflow(_ context.Context, input cmdtools.CommandInput) error
- type AppWithDatabase
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, VMMaintenanceCmd, }, }
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), }
View Source
var VMMaintenanceCmd = &cli.Command{ Name: "vm-maintenance", Usage: "Generate server maintenance workflow for Digital Ocean VMs", Action: cmdtools.Wrap(VMMaintenanceWorkflow), }
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.
func VMMaintenanceWorkflow ¶ added in v0.0.26
func VMMaintenanceWorkflow(_ context.Context, input cmdtools.CommandInput) error
VMMaintenanceWorkflow creates a weekly server maintenance workflow for all apps that use Digital Ocean VMs.
Types ¶
Click to show internal directories.
Click to hide internal directories.