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
Click to show internal directories.
Click to hide internal directories.