export

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package export provides conversion from GitLab CI to other CI/CD formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubContainer

type GitHubContainer struct {
	Image string `yaml:"image"`
}

GitHubContainer represents a container configuration in GitHub Actions.

type GitHubJob

type GitHubJob struct {
	Name      string           `yaml:"name,omitempty"`
	RunsOn    string           `yaml:"runs-on"`
	Container *GitHubContainer `yaml:"container,omitempty"`
	Needs     []string         `yaml:"needs,omitempty"`
	Env       map[string]any   `yaml:"env,omitempty"`
	Steps     []GitHubStep     `yaml:"steps"`
}

GitHubJob represents a job in a GitHub Actions workflow.

type GitHubStep

type GitHubStep struct {
	Name string         `yaml:"name,omitempty"`
	Uses string         `yaml:"uses,omitempty"`
	Run  string         `yaml:"run,omitempty"`
	With map[string]any `yaml:"with,omitempty"`
	Env  map[string]any `yaml:"env,omitempty"`
}

GitHubStep represents a step in a GitHub Actions job.

type GitHubWorkflow

type GitHubWorkflow struct {
	Name string                `yaml:"name,omitempty"`
	On   map[string]any        `yaml:"on,omitempty"`
	Env  map[string]any        `yaml:"env,omitempty"`
	Jobs map[string]*GitHubJob `yaml:"jobs"`
}

GitHubWorkflow represents a GitHub Actions workflow file.

func ConvertToGitHubActions

func ConvertToGitHubActions(pipelineData any, jobsData any) (*GitHubWorkflow, error)

ConvertToGitHubActions converts GitLab CI pipeline and jobs to GitHub Actions format. Accepts both pipeline.Pipeline/pipeline.Job types and raw maps.

Jump to

Keyboard shortcuts

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