ci: refs#6706 Jenkinsfile tuning
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-02-04 21:09:49 +01:00
parent d78c8aef40
commit 9cda07bc5a
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -47,7 +47,7 @@ pipeline {
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
}
stages {
stage('Install') {
stage('Stack') {
environment {
NODE_ENV = ""
TZ = 'Europe/Madrid'
@ -130,7 +130,7 @@ pipeline {
}}
}
}
stage('Build') {
stage('Push') {
when {
expression { RUN_BUILD }
}
@ -142,7 +142,8 @@ pipeline {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
}
dockerBuild()
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
sh 'docker-compose push'
}
}
stage('Deploy') {