0
1
Fork 0

ci(Jenkinsfile): refs #7643 Tag only master as latest

This commit is contained in:
Juan Ferrer 2024-07-15 10:32:11 +02:00
parent ddc5c2adc7
commit 90dea8fde9
1 changed files with 7 additions and 3 deletions

8
Jenkinsfile vendored
View File

@ -72,11 +72,15 @@ pipeline {
}
sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
sh 'docker tag $IMAGE:$TAG $IMAGE:latest'
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh 'docker push $IMAGE:$TAG'
script {
if (env.BRANCH_NAME == 'master') {
sh 'docker tag $IMAGE:$TAG $IMAGE:latest'
sh 'docker push $IMAGE:latest'
}
}
withKubeConfig([
serverUrl: "$KUBERNETES_API",