.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
494b6ca9a1
commit
474fefeab4
23
.drone.star
23
.drone.star
|
@ -54,6 +54,15 @@ 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",
|
||||
|
|
Reference in New Issue