This repository was archived by the owner on Apr 17, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,24 @@ def doReleaseBuild() {
124124 }
125125 }
126126 }
127+ else if (GIT_LOCAL_BRANCH == ' shapshot-2849c1' && checkTag == 0 ) {
128+ def tag = sh(script : ' git describe --tags --exact-match ${GIT_COMMIT}' , returnStdout : true ). trim(). replaceAll(' -' ,' _' )
129+ docker. withRegistry(' https://registry.hub.docker.com' , ' docker-hub-credentials' ) {
130+ iCRelease. push(" ${ platform} -${ tag} " )
131+ }
132+ if (manifest. manifestSupportEnabled()) {
133+ manifest. manifestCreate(" ${ DOCKER_REGISTRY_BASENAME} :${ tag} " ,
134+ [" ${ DOCKER_REGISTRY_BASENAME} :x86_64-${ tag} " ])
135+ manifest. manifestAnnotate(" ${ DOCKER_REGISTRY_BASENAME} :${ tag} " ,
136+ [
137+ [manifest : " ${ DOCKER_REGISTRY_BASENAME} :x86_64-${ tag} " ,
138+ arch : ' amd64' , os : ' linux' , osfeatures : [], variant : ' ' ]
139+ ])
140+ withCredentials([usernamePassword(credentialsId : ' docker-hub-credentials' , usernameVariable : ' login' , passwordVariable : ' password' )]) {
141+ manifest. manifestPush(" ${ DOCKER_REGISTRY_BASENAME} :${ tag} " , login, password)
142+ }
143+ }
144+ }
127145 sh " docker rmi ${ iCRelease.id} "
128146}
129147return this
You can’t perform that action at this time.
0 commit comments