2022-04-24 14:58:52 +08:00
|
|
|
pipeline {
|
2022-04-24 15:04:36 +08:00
|
|
|
agent any
|
2022-04-24 14:58:52 +08:00
|
|
|
stages {
|
2023-01-28 16:26:32 +08:00
|
|
|
stage('Build 7.4-swoole') {
|
|
|
|
|
steps {
|
|
|
|
|
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
|
|
|
|
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:7.4-swoole -f swoole/7.4/Dockerfile .'
|
|
|
|
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:7.4-swoole'
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-04-24 14:58:52 +08:00
|
|
|
stage('Build 8.0-swoole') {
|
|
|
|
|
steps {
|
2022-04-24 15:06:35 +08:00
|
|
|
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
2022-04-24 14:58:52 +08:00
|
|
|
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.0-swoole -f swoole/8.0/Dockerfile .'
|
|
|
|
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.0-swoole'
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-28 16:26:32 +08:00
|
|
|
stage('Build 8.1-swoole') {
|
|
|
|
|
steps {
|
|
|
|
|
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
|
|
|
|
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.1-swoole -f swoole/8.1/Dockerfile .'
|
|
|
|
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.1-swoole'
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-07-03 11:04:59 +08:00
|
|
|
stage('Build 8.2-swoole') {
|
|
|
|
|
steps {
|
|
|
|
|
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
|
|
|
|
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.2-swoole -f swoole/8.2/Dockerfile .'
|
|
|
|
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.2-swoole'
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-04-24 15:10:41 +08:00
|
|
|
stage('Build Latest') {
|
|
|
|
|
steps {
|
2023-07-03 11:04:59 +08:00
|
|
|
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.2-swoole harbor.luxcreo.cn/library/hyperf:latest'
|
2022-04-24 15:10:41 +08:00
|
|
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:latest'
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-04-24 14:58:52 +08:00
|
|
|
}
|
|
|
|
|
}
|