Files
hyperf/Jenkinsfile
李东云 75c068ff29 ci: 更新 Docker 镜像并添加新版本
- 更新 Jenkinsfile,添加 8.4-swoole 版本构建和推送
- 修改 Latest 版本指向 8.4-swoole
- 更新各版本 Dockerfile,设置时区为 America/Los_Angeles
- 新增 8.4 版本 Dockerfile
2025-06-17 17:02:56 +08:00

43 lines
1.7 KiB
Groovy

pipeline {
agent any
stages {
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.1-swoole') {
steps {
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 8.2-swoole') {
steps {
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'
}
}
stage('Build 8.3-swoole') {
steps {
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.3-swoole -f swoole/8.3/Dockerfile .'
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.3-swoole'
}
}
stage('Build 8.4-swoole') {
steps {
sh 'docker build -t harbor.luxcreo.cn/library/hyperf:8.4-swoole -f swoole/8.4/Dockerfile .'
sh 'docker push harbor.luxcreo.cn/library/hyperf:8.4-swoole'
}
}
stage('Build Latest') {
steps {
sh 'docker tag harbor.luxcreo.cn/library/hyperf:8.4-swoole harbor.luxcreo.cn/library/hyperf:latest'
sh 'docker push harbor.luxcreo.cn/library/hyperf:latest'
}
}
}
}