Add 'Jenkinsfile'
Some checks failed
gitea-lenape/docker-http-proxy/pipeline/head There was a failure building this commit
Some checks failed
gitea-lenape/docker-http-proxy/pipeline/head There was a failure building this commit
This commit is contained in:
55
Jenkinsfile
vendored
Normal file
55
Jenkinsfile
vendored
Normal file
@@ -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'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}}
|
Reference in New Issue
Block a user