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