gitlab

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Windows Platform = "windows"
	Linux   Platform = "linux"
	Darwin  Platform = "darwin"

	Arm64   Arch = "arm64"
	Amd64   Arch = "amd64"
	Arm     Arch = "arm"
	Ppc64le Arch = "ppc64le"
	S390x   Arch = "s390x"
)

Functions

func CreateRunner

func CreateRunner(ctx *pulumi.Context, args *GitLabRunnerArgs) (pulumi.StringOutput, error)

CreateRunner creates a GitLab UserRunner via Pulumi and returns auth token. This function should be called during Pulumi stack deployment (inside deploy() functions). Supports both project runners (with ProjectID) and group runners (with GroupID).

func GetToken

func GetToken() string

func Init

func Init(args *GitLabRunnerArgs)

func SetAuthToken

func SetAuthToken(token string)

SetAuthToken sets the authentication token in the global runner args. This is called during Pulumi deployment after the runner is created.

Types

type Arch

type Arch string

type GitLabRunnerArgs

type GitLabRunnerArgs struct {
	GitLabToken string    // Token with create_runner scope (PAT, group/project access token, or service account token)
	ProjectID   string    // GitLab project ID for project runner registration (mutually exclusive with GroupID)
	GroupID     string    // GitLab group ID for group runner registration (mutually exclusive with ProjectID)
	URL         string    // GitLab instance URL (e.g., https://gitlab.com)
	Tags        []string  // Runner tags for job routing (e.g., ["linux", "aws", "spot"])
	Name        string    // Runner name/description (auto-generated from run ID)
	Platform    *Platform // Target platform
	Arch        *Arch     // Target architecture
	User        string    // OS user to run as (only used when Unsecure is true)
	AuthToken   string    // Runner authentication token (set by Pulumi during deployment)
	Unsecure    bool      // When false (default) a dedicated gitlab-runner system user is created; when true the runner service runs as User
	Concurrent  int       // Maximum number of concurrent jobs (written to config.toml; 0 means leave at default of 1)
}

func GetRunnerArgs

func GetRunnerArgs() *GitLabRunnerArgs

func (*GitLabRunnerArgs) GetSetupScriptTemplate

func (args *GitLabRunnerArgs) GetSetupScriptTemplate() string

func (*GitLabRunnerArgs) GetUserDataValues

func (args *GitLabRunnerArgs) GetUserDataValues() *integrations.UserDataValues

type Platform

type Platform string

Jump to

Keyboard shortcuts

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