make repo public
This commit is contained in:
commit
bd3505e426
1 changed files with 5447 additions and 0 deletions
42
Jenkinsfile
vendored
Normal file
42
Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
pipeline {
|
||||
agent none
|
||||
environment {
|
||||
HOME = "."
|
||||
}
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
}
|
||||
stages {
|
||||
stage('build images') {
|
||||
agent { label 'docker-4x' }
|
||||
steps {
|
||||
sh 'make docker-build'
|
||||
}
|
||||
}
|
||||
stage('push images') {
|
||||
agent { label 'docker-4x' }
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'make docker-push'
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
agent {
|
||||
dockerfile {
|
||||
dir 'jenkins'
|
||||
label 'docker-4x'
|
||||
additionalBuildArgs '--build-arg DOCKER_GID=$(stat -c %g /var/run/docker.sock) --build-arg JENKINS_UID=$(id -u jenkins) --build-arg JENKINS_GID=$(id -g jenkins)'
|
||||
args '-v /var/run/docker.sock:/var/run/docker.sock --group-add docker'
|
||||
}
|
||||
}
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'make serverless-deploy'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue