This commit is contained in:
parent
c2598b9e80
commit
85a804001f
|
@ -186,27 +186,27 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// stage('Push') {
|
stage('Push') {
|
||||||
// when {
|
when {
|
||||||
// expression { RUN_BUILD }
|
expression { RUN_BUILD }
|
||||||
// }
|
}
|
||||||
// environment {
|
environment {
|
||||||
// CREDENTIALS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
// }
|
}
|
||||||
// steps {
|
steps {
|
||||||
// script {
|
script {
|
||||||
// def packageJson = readJSON file: 'package.json'
|
def packageJson = readJSON file: 'package.json'
|
||||||
// env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
|
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
|
||||||
// }
|
}
|
||||||
// sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||||
// sh 'docker-compose push'
|
sh 'docker-compose push'
|
||||||
// script {
|
script {
|
||||||
// if (env.BRANCH_NAME == 'master') {
|
if (env.BRANCH_NAME == 'master') {
|
||||||
// sh 'docker tag $IMAGE:$TAG $IMAGE:latest'
|
sh 'docker tag $IMAGE:$TAG $IMAGE:latest'
|
||||||
// sh 'docker push $IMAGE:latest'
|
sh 'docker push $IMAGE:latest'
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
|
|
Loading…
Reference in New Issue