From 862618ca41423d81be15d00e1a9e2ceb744da1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Sat, 28 Jan 2023 16:26:32 +0800 Subject: [PATCH] =?UTF-8?q?ci(jenkins):=20=F0=9F=90=8E=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E6=9B=B4=E5=A4=9A=E7=89=88=E6=9C=AC=E7=9A=84?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c0d047b..c7ffd14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,20 @@ pipeline { agent any 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') { steps { 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' } } + 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') { 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' } }