feat: refs #6695 try
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-09-11 13:07:54 +02:00
parent 17bf720220
commit 3cca426eba
1 changed files with 15 additions and 14 deletions

29
Jenkinsfile vendored
View File

@ -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') {