From 1fc8e1cd0be8aef0bde78ad98427770480fc1e2a Mon Sep 17 00:00:00 2001 From: lenape Date: Thu, 8 May 2025 01:06:14 +0000 Subject: [PATCH] Add 'Jenkinsfile' --- Jenkinsfile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..eaeee3c --- /dev/null +++ b/Jenkinsfile @@ -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' + + } + + } + + } + +}}