1 changed files with 55 additions and 0 deletions
@ -0,0 +1,55 @@ |
|||||||
|
pipeline { |
||||||
|
|
||||||
|
agent none |
||||||
|
|
||||||
|
options { |
||||||
|
|
||||||
|
disableConcurrentBuilds(abortPrevious: true) |
||||||
|
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: '1')) |
||||||
|
} |
||||||
|
|
||||||
|
stages { |
||||||
|
|
||||||
|
|
||||||
|
stage('docker compose build') { |
||||||
|
|
||||||
|
agent { |
||||||
|
|
||||||
|
label "xochi" |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
steps { |
||||||
|
|
||||||
|
dir('.') { |
||||||
|
|
||||||
|
sh 'docker compose build' |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
stage('docker compose push') { |
||||||
|
|
||||||
|
agent { |
||||||
|
|
||||||
|
label "xochi" |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
steps { |
||||||
|
|
||||||
|
dir('.') { |
||||||
|
|
||||||
|
sh 'docker compose push' |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
}} |
Loading…
Reference in new issue