test
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-07-19 14:12:12 +02:00
parent 952341dc29
commit 4d4944238e
1 changed files with 4 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -92,10 +92,12 @@ pipeline {
stage('Push image') { stage('Push image') {
environment { environment {
CREDENTIALS = credentials('docker-registry') CREDENTIALS = credentials('docker-registry')
IMAGE = "$REGISTRY/verdnatura/salix-back"
} }
steps { steps {
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
sh 'docker push salix-back:$BRANCH_NAME' sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh 'docker push $IMAGE:$BRANCH_NAME'
} }
} }
} }