Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.54 KB

File metadata and controls

72 lines (48 loc) · 1.54 KB

Linking Spinnaker to Github

Overview

  • In order to connect to github, we will need to establish a token

  • This will build a connection from Spinnaker to Github

  • As users you will create the token

  • As administration you will put the token in Spinnaker using Halyard

Creating a token

github token
Figure 1. Token Page

Select the public_repo scope

Select the public repo scope

github access
Figure 2. Allowing Use

Copying the token

  • You have one shot to copy the token and secure it

  • Copy it, by clicking on the clipboard icon next to the hash

github hash

Setting up the token in Spinnaker

Paste the token and store it in a temporary file

pbpaste > token_file.txt

Setup some temporary fields for both the location of token file, and the github account name

TOKEN_FILE=~/token_file.txt
ARTIFACT_ACCOUNT_NAME=<github-username>-account

Installing your Github connection

hal config features edit --artifacts true
hal config artifact github enable

Add your account:

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

Deploy to Spinnaker

hal deploy apply