6 Star 23 Fork 7

fastjrun/db2doc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker.groovy 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
fastjrun 提交于 2022-08-26 22:27 . 使用快嘉sdkg进行重构
node {
stage('git chekout') {
git branch: 'master', url: 'https://gitee.com/fastjrun/db2doc.git'
}
stage('package db2doc') {
sh 'sh build.sh package_server'
}
stage('docker prepare') {
dir('output') {
stash 'tarOutput'
}
}
stage('docker build && push') {
parallel(
'docker build && push': {
sh 'cd output && docker build . -t pi4k8s/db2doc-arm64:2.0'
sh 'docker push pi4k8s/db2doc-arm64:2.0'
},
'docker build && push amd64': {
node('amd64') {
sh 'rm -rf output'
dir('output') {
unstash 'tarOutput'
}
sh 'cd output && docker build . -t pi4k8s/db2doc-amd64:2.0'
sh 'docker push pi4k8s/db2doc-amd64:2.0'
}
}
)
}
stage('manifest'){
try {
sh 'docker manifest rm pi4k8s/db2doc:2.0'
}catch(exc){
echo "some thing wrong"
}
sh 'docker manifest create pi4k8s/db2doc:2.0 pi4k8s/db2doc-amd64:2.0 pi4k8s/db2doc-arm64:2.0'
sh 'docker manifest annotate pi4k8s/db2doc:2.0 pi4k8s/db2doc-amd64:2.0 --os linux --arch amd64'
sh 'docker manifest annotate pi4k8s/db2doc:2.0 pi4k8s/db2doc-arm64:2.0 --os linux --arch arm64'
sh 'docker manifest push pi4k8s/db2doc:2.0'
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fastjrun/db2doc.git
git@gitee.com:fastjrun/db2doc.git
fastjrun
db2doc
db2doc
master

搜索帮助

Cb406eda 1850385 E526c682 1850385