appgitlab

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitLabWorkflowTask

func GitLabWorkflowTask(taskContext taskcommon.TaskContext, dryRun bool) (apptask.WorkflowTaskResult, error)

GitLabWorkflowTask generates a project-specific GitLab workflow file and creates a pull request

Links of interest: https://gitlab.com/gitlab-org/gitlab/-/tree/master/doc/ci/runners/hosted_runners?ref_type=heads for all available runner tags

Types

type RenderWorkflowResult

type RenderWorkflowResult struct {
	WorkflowContent string
}

type TemplateData

type TemplateData struct {
	Version                      string                                  `json:"version"`
	ContainerRuntime             string                                  `json:"container_runtime"`
	RunnerTags                   []string                                `json:"runner_tags,omitempty"`
	Stages                       []string                                `json:"stages"`
	Workflows                    []appconfig.WorkflowData                `json:"workflows"`
	WorkflowDependency           map[string]appconfig.WorkflowDependency `json:"workflow_dependency"`
	ReferencedWorkflowDependency map[string]appconfig.WorkflowDependency `json:"-"`
}

func (*TemplateData) GetDependency

func (t *TemplateData) GetDependency(key string) appconfig.WorkflowDependency

func (*TemplateData) GetDependencyReference

func (t *TemplateData) GetDependencyReference(key string) string

Jump to

Keyboard shortcuts

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