You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.1 KiB
76 lines
1.1 KiB
7 months ago
|
pipeline {
|
||
|
|
||
|
agent none
|
||
|
|
||
|
options {
|
||
|
|
||
|
disableConcurrentBuilds(abortPrevious: true)
|
||
|
|
||
|
buildDiscarder(logRotator(numToKeepStr: '1'))
|
||
|
}
|
||
|
|
||
|
stages {
|
||
|
|
||
|
stage('docker compose build') {
|
||
|
|
||
|
agent {
|
||
|
|
||
|
label "aventador"
|
||
|
|
||
|
}
|
||
|
|
||
|
steps {
|
||
|
|
||
|
dir('.') {
|
||
|
|
||
|
sh 'docker compose build'
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
stage('docker compose push') {
|
||
|
|
||
|
agent {
|
||
|
|
||
|
label "aventador"
|
||
|
|
||
|
}
|
||
|
|
||
|
steps {
|
||
|
|
||
|
dir('.') {
|
||
|
|
||
|
sh 'docker compose push'
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
stage('prune') {
|
||
|
|
||
|
agent {
|
||
|
|
||
|
label "aventador"
|
||
|
|
||
|
}
|
||
|
|
||
|
steps {
|
||
|
|
||
|
dir('.') {
|
||
|
|
||
|
sh 'docker system prune -a -f'
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}}
|
||
|
|