This commit is contained in:
parent
3c88061401
commit
ead308856f
49
.Jenkinsfile
49
.Jenkinsfile
|
@ -94,8 +94,9 @@ pipeline {
|
|||
|
||||
stage('Build apache2-php') {
|
||||
parallel {
|
||||
stage('Build apache2-php (Stretch)') {
|
||||
stage('Build apache2-php > Stretch') {
|
||||
steps {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
script {
|
||||
def deb = docker.build("evolix/apache2-php:deb9build${env.BUILD_ID}", "apache2-php/stretch/")
|
||||
deb.inside {
|
||||
|
@ -117,9 +118,11 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build apache2-php (Buster)') {
|
||||
stage('Build apache2-php > Buster') {
|
||||
steps {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
script {
|
||||
def deb = docker.build("evolix/apache2-php:deb10build${env.BUILD_ID}", "apache2-php/buster/")
|
||||
deb.inside {
|
||||
|
@ -142,8 +145,10 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Build apache2-php (Bullseye)') {
|
||||
}
|
||||
stage('Build apache2-php > Bullseye') {
|
||||
steps {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
script {
|
||||
def deb = docker.build("evolix/apache2-php:deb11build${env.BUILD_ID}", "./apache2-php/bullseye")
|
||||
deb.inside {
|
||||
|
@ -166,9 +171,11 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build apache2-php ') {
|
||||
stage('Build apache2-php > Bookworm') {
|
||||
steps {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
script {
|
||||
def deb = docker.build("evolix/apache2-php:deb12build${env.BUILD_ID}", "./apache2-php/bookworm")
|
||||
deb.inside {
|
||||
|
@ -195,34 +202,62 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
stage('Build redis (Stretch)') {
|
||||
stage('Build redis') {
|
||||
parallel {
|
||||
stage('Build redis > Stretch') {
|
||||
steps {
|
||||
script {
|
||||
def deb = docker.build("evolix/redis:deb9build${env.BUILD_ID}", "redis/stretch")
|
||||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
if(env.BRANCH_NAME == "master") {
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('stretch')
|
||||
// deb.push('strech')
|
||||
// deb.push('latest')
|
||||
// }
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('strech')
|
||||
deb.push('latest')
|
||||
}
|
||||
}
|
||||
else {
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push("strech-branch_${env.BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build redis (Buster)') {
|
||||
stage('Build redis > Buster') {
|
||||
steps {
|
||||
script {
|
||||
def deb = docker.build("evolix/redis:deb10build${env.BUILD_ID}", "redis/buster")
|
||||
deb.inside {
|
||||
sh 'echo Test needed'
|
||||
}
|
||||
if(env.BRANCH_NAME == "master") {
|
||||
// docker.withRegistry('', 'hub.docker') {
|
||||
// deb.push('buster')
|
||||
// deb.push('latest')
|
||||
// }
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push('buster')
|
||||
deb.push('latest')
|
||||
}
|
||||
}
|
||||
else {
|
||||
docker.withRegistry('https://gitea.evolix.org/evolix', '8dfefa9b-64e5-4361-add4-6214b53be14a') {
|
||||
deb.push("buster-branch_${env.BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue