From 07776fb1f080851e6a86c66dd1d56e9c67ba970c Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Mon, 13 May 2024 09:27:03 -0400 Subject: [PATCH] add contexts --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) 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'