Configure a GitLab artifact account

Configure a GitLab artifact account so that Spinnaker can download files from GitLab.

Prerequisites

Download credentials

Start by generating an access token for GitLab.

Add the credentials either to a secrets manager for use by reference or to a volume mounted into the clouddriver pods by modifying the deployment.yaml for clouddriver.

Add the account and enable it

All that’s required are the following configuration:

artifacts:
  enabled: true
  gitlab:
    enabled: true
    accounts:
    - name: my-gitlab-account
      token: patToken
      tokenFile: /mnt/someplace/tokenFile
  

There are more options including URL restrictions that can be set to allow only internal gitlab hosts. See the gitlab account definition for information.