add jenkins file
This commit is contained in:
parent
e99cac3164
commit
ae151c185c
|
@ -0,0 +1,30 @@
|
|||
pipeline {
|
||||
|
||||
agent none
|
||||
|
||||
environment {
|
||||
CI = 'true'
|
||||
}
|
||||
stages {
|
||||
|
||||
stage('build') {
|
||||
|
||||
parallel {
|
||||
|
||||
stage('Build Docker Images') {
|
||||
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
|
||||
steps {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE'){
|
||||
sh label: 'docker-build', script: 'cd /home/jenkins/go/src/infini.sh/ && docker build -t infini-console -f search-center/docker/Dockerfile .'
|
||||
sh label: 'docker-tagging', script: 'docker tag infini-console infinilabs/console:latest && docker tag infini-console infinilabs/console:$VERSION-$BUILD_NUMBER'
|
||||
sh label: 'docker-push', script: 'docker push infinilabs/console:$VERSION-$BUILD_NUMBER && docker push infinilabs/console:latest'
|
||||
}
|
||||
}
|
||||
}
|
||||
} }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue