Skip to content

Commit

Permalink
login to github
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdjerred committed Feb 17, 2024
1 parent d40271b commit 1cc39df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ pipeline {
}

environment {
GITHUB_USERNAME = "shepherdjerred"
GITHUB_TOKEN = credentials('GITHUB_TOKEN')
EARTHLY_TOKEN = credentials('EARTHLY_TOKEN')
}

stages {
stage('Build') {
steps {
sh 'earthly config git "{github.com: {user: $GITHUB_USERNAME, password: $GITHUB_TOKEN, auth: https}}"'
sh 'earthly config git "{ghcr.io: {user: $GITHUB_USERNAME, password: $GITHUB_TOKEN, auth: https}}"'
sh 'earthly --sat=lamport --org=sjerred --ci --push +ci';
}
}
Expand Down

0 comments on commit 1cc39df

Please sign in to comment.