Adding docker build and push to Jenkins

This commit is contained in:
retropikzel 2025-09-14 08:43:18 +03:00
parent 14daada290
commit bedf05fc80
1 changed files with 10 additions and 6 deletions

4
Jenkinsfile vendored
View File

@ -67,11 +67,13 @@ pipeline {
label 'linux-x86-64' label 'linux-x86-64'
} }
when { when {
allOf {
branch 'main' branch 'main'
expression { expression {
return params.DOCKER return params.DOCKER
} }
} }
}
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'docker build . --tag=retropikzel1/compile-r7rs' sh 'docker build . --tag=retropikzel1/compile-r7rs'
@ -86,11 +88,13 @@ pipeline {
label 'linux-arm' label 'linux-arm'
} }
when { when {
allOf {
branch 'main' branch 'main'
expression { expression {
return params.DOCKER return params.DOCKER
} }
} }
}
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'docker build . --tag=retropikzel1/compile-r7rs' sh 'docker build . --tag=retropikzel1/compile-r7rs'