Update 'Jenkinsfile'

add GITHUB_PAT variable
This commit is contained in:
Roberto Cirillo 2022-04-04 17:43:35 +02:00
parent 5f30cce299
commit 21815c7e16
1 changed files with 6 additions and 2 deletions

8
Jenkinsfile vendored
View File

@ -23,10 +23,14 @@ pipeline {
}
stage('Building image') {
steps{
script {
dockerImage = docker.build imagename
withCredentials([string(credentialsId: 'GITHUB_PAT', variable: 'GITHUB_PAT')]) {
script {
dockerImage = docker.build imagename
}
}
}
}
}
stage('Deploy Image') {
steps{