This commit is contained in:
parent
17bf720220
commit
3cca426eba
|
@ -89,21 +89,22 @@ pipeline {
|
|||
sh 'pnpm install --prefer-offline --prefix=front'
|
||||
}
|
||||
}
|
||||
stage('Push image') {
|
||||
environment {
|
||||
CREDENTIALS = credentials('docker-registry')
|
||||
IMAGE = "$REGISTRY/verdnatura/salix-back"
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
def packageJson = readJSON file: 'package.json'
|
||||
env.VERSION = BRANCH_NAME
|
||||
}
|
||||
sh 'docker-compose build back'
|
||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||
sh 'docker push $IMAGE:$BRANCH_NAME'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
stage('Push image') {
|
||||
environment {
|
||||
CREDENTIALS = credentials('docker-registry')
|
||||
IMAGE = "$REGISTRY/verdnatura/salix-back"
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
def packageJson = readJSON file: 'package.json'
|
||||
env.VERSION = BRANCH_NAME
|
||||
}
|
||||
sh 'docker-compose build back'
|
||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||
sh 'docker push $IMAGE:$BRANCH_NAME'
|
||||
}
|
||||
}
|
||||
stage('Stack') {
|
||||
|
|
Loading…
Reference in New Issue