Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 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 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)
LogToJournald bool // When true, sets Podman log_driver=journald so CI job output is captured by systemd journal for OTel correlation
}
func GetRunnerArgs ¶
func GetRunnerArgs() *GitLabRunnerArgs
func (*GitLabRunnerArgs) GetSetupScriptTemplate ¶
func (args *GitLabRunnerArgs) GetSetupScriptTemplate() string
func (*GitLabRunnerArgs) GetUserDataValues ¶
func (args *GitLabRunnerArgs) GetUserDataValues() *integrations.UserDataValues
Click to show internal directories.
Click to hide internal directories.