add contexts
This commit is contained in:
parent
22d231b9c1
commit
07776fb1f0
|
@ -26,6 +26,10 @@ pipeline {
|
||||||
sh 'docker compose ps'
|
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') {
|
stage('Start secondary container') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker --context pi502 compose up -d --no-color secondary'
|
sh 'docker --context pi502 compose up -d --no-color secondary'
|
||||||
|
|
Loading…
Reference in New Issue