Module Gitlab_ci.Var

GitLab CI Configuration variables

type t

Variables in GitLab CI configurations.

Variables appear in:

  • GitLab if: expressions
  • Job scripts and elsewhere (see here for more information)
val make : string -> t

make variable_name creates a variable called variable_name.

Raises Invalid_argument if the name is not composed exclusively of characters from the set a-zA-Z0-9_.

val encode : t -> string

The string representation of a variable.

encode @@ make "foo" is "$foo".