Files
workavia-mail-front/Jenkinsfile
T
Thai Nguyen d1123b11d9 Removed release conditionals in Jenkinsfile
Since we do not release new versions on `release` branch anymore
2022-10-07 16:44:21 +07:00

40 lines
799 B
Groovy

pipeline {
agent any
options {
// Configure an overall timeout for the build.
timeout(time: 1, unit: 'HOURS')
disableConcurrentBuilds()
}
stages {
stage('Deliver web Docker image') {
when {
anyOf {
branch 'master'
buildingTag()
}
}
steps {
script {
env.DOCKER_TAG = 'master'
if (env.TAG_NAME) {
env.DOCKER_TAG = env.TAG_NAME
}
echo "Docker tag: ${env.DOCKER_TAG}"
// Build image
sh "docker build -t linagora/tmail-web:${env.DOCKER_TAG} ."
def webImage = docker.image "linagora/tmail-web:${env.DOCKER_TAG}"
docker.withRegistry('', 'dockerHub') {
webImage.push()
}
}
}
}
}
}