From 1cc39df963cd65387da3fe37563d51a4f50dcc75 Mon Sep 17 00:00:00 2001 From: Jerred Shepherd Date: Fri, 16 Feb 2024 20:27:45 -0800 Subject: [PATCH] login to github --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b246c53..751c855 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'; } }