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

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

Last modified January 1, 0001