Configure a GitHub artifact account

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

Prerequisites

Downloading credentials

Start by generating an access token for GitHub. The token requires the repo scope.

Place the token in a file ($TOKEN_FILE) readable by Halyard:

  1. echo $TOKEN > $TOKEN_FILE

Editing your artifact settings

All that’s required are the following values:

  1. # See the prerequisites section above
  2. TOKEN_FILE=
  3. ARTIFACT_ACCOUNT_NAME=my-github-artifact-account

First, enable artifact support .

Next, enable the GitHub artifact provider:

  1. hal config artifact github enable

Next, add an artifact account:

  1. hal config artifact github account add $ARTIFACT_ACCOUNT_NAME \
  2. --token-file $TOKEN_FILE

There are more options described here if you need more control over your configuration.

Last modified May 7, 2021: docs(migration): fix imgs and links (9a18ce6)