.
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
25
.drone.star
25
.drone.star
|
@ -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",
|
||||
|
|
Reference in New Issue