Jenkins (temp) disable push to docker hub + change tag name on branch name
All checks were successful
gitea/evodocker/pipeline/head This commit looks good
All checks were successful
gitea/evodocker/pipeline/head This commit looks good
This commit is contained in:
parent
94d76c581d
commit
afa4b99a8a
181
.Jenkinsfile
181
.Jenkinsfile
|
@ -13,9 +13,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'gbp --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,9 +27,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'gbp --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('bullseye')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('bullseye')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -41,9 +41,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,9 +55,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -69,9 +69,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,9 +85,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,8 +101,18 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('stretch')
|
||||
if(env.BRANCH_NAME == "master") {
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('stretch')
|
||||
// }
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('stretch')
|
||||
}
|
||||
}
|
||||
else {
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push("stretch-branch_${env.BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -115,9 +125,19 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('buster')
|
||||
deb.push('latest')
|
||||
|
||||
if(env.BRANCH_NAME == "master") {
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('buster')
|
||||
// }
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('buster')
|
||||
}
|
||||
}
|
||||
else {
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push("buster-branch_${env.BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -129,33 +149,50 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('bullseye')
|
||||
deb.push('latest')
|
||||
|
||||
if(env.BRANCH_NAME == "master") {
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('bullseye')
|
||||
// }
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('bullseye')
|
||||
}
|
||||
}
|
||||
else {
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push("bullseye-branch_${env.BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build apache2-php (Bookworm)') {
|
||||
|
||||
stage('Build apache2-php ') {
|
||||
steps {
|
||||
script {
|
||||
def deb = docker.build("evolix/apache2-php:deb12build${env.BUILD_ID}", "./apache2-php/bookworm")
|
||||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('bookworm')
|
||||
deb.push('latest')
|
||||
}
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('bookworm')
|
||||
deb.push('latest')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(env.BRANCH_NAME == "master") {
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('bookworm')
|
||||
// deb.push('latest')
|
||||
// }
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('bookworm')
|
||||
deb.push('latest')
|
||||
}
|
||||
}
|
||||
else {
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push("bookworm-branch_${env.BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -168,9 +205,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('stretch')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('stretch')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -182,10 +219,10 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('buster')
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('buster')
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -197,9 +234,9 @@ pipeline {
|
|||
deb.inside {
|
||||
sh 'composer --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb.push('latest')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('latest')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -211,10 +248,10 @@ pipeline {
|
|||
deb8.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb8.push('jessie')
|
||||
deb8.push('5.6')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb8.push('jessie')
|
||||
// deb8.push('5.6')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -226,10 +263,10 @@ pipeline {
|
|||
deb9.inside {
|
||||
sh 'composer --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb9.push('stretch')
|
||||
deb9.push('7.0')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb9.push('stretch')
|
||||
// deb9.push('7.0')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -241,10 +278,10 @@ pipeline {
|
|||
deb10.inside {
|
||||
sh 'composer --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb10.push('buster')
|
||||
deb10.push('7.3')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb10.push('buster')
|
||||
// deb10.push('7.3')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -256,10 +293,10 @@ pipeline {
|
|||
deb11.inside {
|
||||
sh 'composer --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb11.push('bullseye')
|
||||
deb11.push('7.4')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb11.push('bullseye')
|
||||
// deb11.push('7.4')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -271,10 +308,10 @@ pipeline {
|
|||
deb11php80.inside {
|
||||
sh 'composer --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb11php80.push('bullseye80')
|
||||
deb11php80.push('8.0')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb11php80.push('bullseye80')
|
||||
// deb11php80.push('8.0')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -286,10 +323,10 @@ pipeline {
|
|||
deb11php81.inside {
|
||||
sh 'composer --version'
|
||||
}
|
||||
docker.withRegistry('', 'hub.docker') {
|
||||
deb11php81.push('bullseye81')
|
||||
deb11php81.push('8.1')
|
||||
}
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb11php81.push('bullseye81')
|
||||
// deb11php81.push('8.1')
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue