.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-26 17:37:22 +01:00
parent 494b6ca9a1
commit 474fefeab4
1 changed files with 14 additions and 11 deletions

View File

@ -53,7 +53,16 @@ def buildNginx(name):
def deploy(
filename,
folder,
):
):
images = [
"letsencrypt-git",
"letsencrypt-chat",
"letsencrypt-drone",
"letsencrypt-remote",
"letsencrypt-blog",
"nginx-home1",
"drone-starlark",
]
return {
"name": "deploy",
"image": "appleboy/drone-ssh",
@ -66,16 +75,10 @@ def deploy(
"password": fromSecret("ssh-root-password"),
"script": [
"set -e"
] + map(export, publicSecrets + secretSecrets) + [
"echo {folder}".format(folder=folder),
"cd {folder}".format(folder=folder),
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-git",
"docker pull $${LOCAL_DOCKER_REGISTRY}nginx-home1",
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-chat",
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-remote",
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-blog",
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-drone",
"docker pull $${LOCAL_DOCKER_REGISTRY}drone-starlark",
] +
map(export, publicSecrets + secretSecrets) +
["docker pull $${{LOCAL_DOCKER_REGISTRY}}{image}".format(image=image) for image in images ] +
[
"docker network prune -f",
"cd {folder}".format(folder=folder),
"docker stack rm gitea",