mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-14 00:18:03 -05:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df9748fe27 | ||
|
|
af942bef61 | ||
|
|
2ed812322f | ||
|
|
1134eee175 | ||
|
|
e4699d2a51 | ||
|
|
6ce5b6dad0 | ||
|
|
7732b0c3f8 | ||
|
|
c9c849a56e | ||
|
|
257bc88a87 | ||
|
|
04552240e3 | ||
|
|
2aff8a1ad1 | ||
|
|
f75f4afb60 | ||
|
|
f979964d04 | ||
|
|
3507c419b4 | ||
|
|
8d55e83239 | ||
|
|
2d20ee639f | ||
|
|
08bf938e19 |
@@ -1,6 +1,6 @@
|
|||||||
imagePrefix = 'scrolltech'
|
imagePrefix = 'scrolltech'
|
||||||
credentialDocker = 'dockerhub'
|
credentialDocker = 'dockerhub'
|
||||||
|
TAGNAME = ''
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
options {
|
options {
|
||||||
@@ -41,16 +41,38 @@ pipeline {
|
|||||||
if (TAGNAME == ""){
|
if (TAGNAME == ""){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sh "docker login --username=${dockerUser} --password=${dockerPassword}"
|
sh "docker login --username=$dockerUser --password=$dockerPassword"
|
||||||
sh "make -C bridge docker"
|
catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
|
||||||
sh "make -C coordinator docker"
|
script {
|
||||||
sh "docker tag scrolltech/bridge:latest scrolltech/bridge:${TAGNAME}"
|
try {
|
||||||
sh "docker tag scrolltech/coordinator:latest scrolltech/coordinator:${TAGNAME}"
|
sh "docker manifest inspect scrolltech/bridge:$TAGNAME > /dev/null"
|
||||||
sh "docker push scrolltech/bridge:${TAGNAME}"
|
} catch (e) {
|
||||||
sh "docker push scrolltech/coordinator:${TAGNAME}"
|
// only build if the tag non existed
|
||||||
|
//sh "docker login --username=${dockerUser} --password=${dockerPassword}"
|
||||||
|
sh "make -C bridge docker"
|
||||||
|
sh "docker tag scrolltech/bridge:latest scrolltech/bridge:${TAGNAME}"
|
||||||
|
sh "docker push scrolltech/bridge:${TAGNAME}"
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
|
||||||
|
script {
|
||||||
|
try {
|
||||||
|
sh "docker manifest inspect scrolltech/coordinator:$TAGNAME > /dev/null"
|
||||||
|
} catch (e) {
|
||||||
|
// only build if the tag non existed
|
||||||
|
//sh "docker login --username=${dockerUser} --password=${dockerPassword}"
|
||||||
|
sh "make -C coordinator docker"
|
||||||
|
sh "docker tag scrolltech/coordinator:latest scrolltech/coordinator:${TAGNAME}"
|
||||||
|
sh "docker push scrolltech/coordinator:${TAGNAME}"
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user