Help us shape the future of Go! Take the 2026 Go Developer Survey

gitlab

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 4 Imported by: 0

Documentation

Overview

Package gitlab lowers a forge-neutral model.Pipeline to GitLab CI YAML.

The emitted file is a complete .gitlab-ci.yml — not a patch, not a fragment. It is the authoritative CI document for the repo, committed as generated source.

Forge-specific lowering:

  • RoutingSpec.Labels → tags:
  • CapabilitySpec.Docker → .transport variables (DOCKER_HOST, TLS, certs)
  • CapabilitySpec.OIDC → id_tokens.STAGEFREIGHT_OIDC
  • PipelineDefaults.CIContext → before_script exporting SF_CI_* from CI_*
  • PipelineDefaults.CancelSuperseded → workflow.auto_cancel.on_new_commit
  • SourceSpec.FullClone → variables.GIT_DEPTH: 0
  • PolicySpec.WhenAlways → when: always
  • PolicySpec.AllowFailure → allow_failure: true
  • PolicySpec.Serialize → resource_group

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(p model.Pipeline) ([]byte, error)

Emit renders a forge-neutral Pipeline to GitLab CI YAML bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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