mirror of
http://124.126.16.154:8888/singularity/docker-images-hyperf.git
synced 2026-01-15 00:35:08 +08:00
ci(jenkins): 🐎 添加了更多版本的构建
This commit is contained in:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -1,6 +1,20 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
|
stage('Build 7.3-swoole') {
|
||||||
|
steps {
|
||||||
|
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
||||||
|
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:7.3-swoole -f swoole/7.3/Dockerfile .'
|
||||||
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:7.3-swoole'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build 8.0-swoole') {
|
stage('Build 8.0-swoole') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
sh 'docker login harbor.luxcreo.cn -u \'robot$library+jenkinsfile\' -p Bw0teIfUhP7WBd1yDp7DTWSbF0d5nVvE'
|
||||||
@@ -8,9 +22,16 @@ pipeline {
|
|||||||
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.0-swoole'
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.0-swoole'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build Latest') {
|
stage('Build Latest') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.0-swoole harbor.luxcreo.cn/library/hyperf:latest'
|
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.1-swoole harbor.luxcreo.cn/library/hyperf:latest'
|
||||||
sh 'docker push harbor.luxcreo.cn/library/hyperf:latest'
|
sh 'docker push harbor.luxcreo.cn/library/hyperf:latest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user