.
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(
|
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",
|
||||||
|
|
Reference in New Issue