Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix intent, add restart
Browse files Browse the repository at this point in the history
  • Loading branch information
ingwinlu committed May 16, 2018
1 parent 62ff2ba commit 711ca76
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions scripts/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,21 @@ maybeStage("Deploy Homepage", true) {
sh "docker stop -t 5 ${backend_name} || /bin/true"
sh "docker rm ${backend_name} || /bin/true"
backend.run("""\
--name ${backend_name} \
-e VIRTUAL_HOST=restapi.libelektra.org \
-e LETSENCRYPT_HOST=restapi.libelektra.org \
-e LETSENCRYPT_EMAIL=jenkins@hub.libelektra.org"""
-e VIRTUAL_HOST=restapi.libelektra.org \
-e LETSENCRYPT_HOST=restapi.libelektra.org \
-e LETSENCRYPT_EMAIL=jenkins@hub.libelektra.org \
--name ${backend_name} \
--restart=always"""
)

sh "docker stop -t ${frontend_name} || /bin/true"
sh "docker rm ${frontend_name} || /bin/true"
frontend.run("""\
--name ${frontend_name} \
-e VIRTUAL_HOST=www.libelektra.org \
-e LETSENCRYPT_HOST=www.libelektra.org \
-e LETSENCRYPT_EMAIL=jenkins@hub.libelektra.org"""
-e VIRTUAL_HOST=www.libelektra.org \
-e LETSENCRYPT_HOST=www.libelektra.org \
-e LETSENCRYPT_EMAIL=jenkins@hub.libelektra.org \
--name ${frontend_name} \
--retart=always"""
)
}
}
Expand Down

0 comments on commit 711ca76

Please sign in to comment.