Gitlab File

Gitlab file artifacts are references to files stored in Gitlab . They are generally consumed by stages that read configuration from text files, such as a Deploy Manifest stage.

Fields

FieldExplanation
typeAlways gitlab/file.
referenceThe full path including filename for retrieval via the Gitlab API. https://gitlab.example.com/api/v4/projects/13083/repository/files/manifests%2Fconfig%2Eyaml/raw is an example from the Gitlab documentation. For more info, see the documentation here .
nameThe file path within your repo. path/to/file.yml is an example.
versionThe file’s commit or branch.
locationN/A

Example

{
  "type": "gitlab/file",
  "reference": "https://gitlab.example.com/api/v4/projects/13083/repository/files/manifests%2Fconfig%2Eyaml/raw",
  "name": "manifests/config.yaml",
  "version": "master"
}
Last modified January 1, 0001