diff --git a/Jenkinsfile b/Jenkinsfile index b727187..cc28d29 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,6 +26,10 @@ pipeline { sh 'docker compose ps' } } + stage('Create contexts') { + steps { + sh 'docker context ls | grep pi502 || docker context create pi502 --docker "host=ssh://pi502.in.thelinuxpro.net"' + } stage('Start secondary container') { steps { sh 'docker --context pi502 compose up -d --no-color secondary'