generated from Templates/Utility-Image-Builder
Added export
All checks were successful
Home Cluster Builds/Image-Deploy-Arm64/pipeline/head This commit looks good
All checks were successful
Home Cluster Builds/Image-Deploy-Arm64/pipeline/head This commit looks good
This commit is contained in:
12
cicd/Jenkinsfile
vendored
12
cicd/Jenkinsfile
vendored
@@ -36,12 +36,12 @@ spec:
|
|||||||
stage('Docker Build and Push') {
|
stage('Docker Build and Push') {
|
||||||
steps {
|
steps {
|
||||||
container("kaniko") {
|
container("kaniko") {
|
||||||
sh """
|
sh '''
|
||||||
destinationRegistry=`sed -n 's/^destinationRegistry=\\(.*\\)/\\1/p' < config.conf`
|
export destinationRegistry=`sed -n 's/^destinationRegistry=\\(.*\\)/\\1/p' < config.conf`
|
||||||
imageName=`sed -n 's/^imageName=\\(.*\\)/\\1/p' < config.conf`
|
export imageName=`sed -n 's/^imageName=\\(.*\\)/\\1/p' < config.conf`
|
||||||
imageTag=`sed -n 's/^imageTag=\\(.*\\)/\\1/p' < config.conf`
|
export imageTag=`sed -n 's/^imageTag=\\(.*\\)/\\1/p' < config.conf`
|
||||||
/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination $destinationRegistry/$imageName:$imageTag
|
/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination ${destinationRegistry}/${imageName}:${imageTag}
|
||||||
"""
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user