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