cicd

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

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,
		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

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

type AppWithDatabase added in v0.0.15

type AppWithDatabase struct {
	App      appdef.App
	Database appdef.Resource
	Secrets  map[string]string
}

AppWithDatabase represents a Payload app that has a Postgres database dependency.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL