OpsMx
Search…
GitHub

GitHub Artifacts Account

  • Spinnaker can be configured to listen to changes to a repository in GitHub. These steps show you how to configure a GitHub artifact account so that Spinnaker can download files from GitHub.

Prerequisites

  • It’s mandatory to have a valid GitHub Account.

Downloading GitHub Credentials:

  • Follow the below steps to generate an Access Token for GitHub. Ensure to provide repo scope for the newly created Token.
  • Place the token in a file $TOKEN_File readable by Halyard:
    1
    echo $TOKEN > $TOKEN_FILE
    Copied!

Enable GitHub Artifact Settings

  • Ensure to have the following values enabled
    1
    # See the prerequisites section above
    2
    TOKEN_FILE=
    3
    4
    ARTIFACT_ACCOUNT_NAME=my-github-artifact-account
    Copied!
  • Ensure to have the GitHub Artifacts Support is enabled on Spinnaker
    1
    hal config features edit --artifacts true
    2
    hal config artifact github enable
    Copied!
  • Execute the following command to add an Artifact Account
    1
    hal config artifact github account add $ARTIFACT_ACCOUNT_NAME \
    2
    --token-file $TOKEN_FILE
    Copied!
Note: To Explore more options on this configuration, click here
Last modified 1yr ago