.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d76084a6df
commit
a2a1b79bd2
|
@ -25,7 +25,7 @@ def printSecrets(env):
|
||||||
"username": fromSecret("ssh-user"),
|
"username": fromSecret("ssh-user"),
|
||||||
"password": fromSecret("ssh-password"),
|
"password": fromSecret("ssh-password"),
|
||||||
"script": [
|
"script": [
|
||||||
"rm -f env.stack",
|
"rm -f env-stack",
|
||||||
] + map(echo, env)
|
] + map(echo, env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -155,9 +155,9 @@ def deploy():
|
||||||
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-drone",
|
"docker pull $${LOCAL_DOCKER_REGISTRY}letsencrypt-drone",
|
||||||
"docker network prune -f",
|
"docker network prune -f",
|
||||||
"cd /home/$SSH_USER/gitea-drone-stack",
|
"cd /home/$SSH_USER/gitea-drone-stack",
|
||||||
"docker stack rm gitea",
|
#"docker stack rm gitea",
|
||||||
"sleep 60",
|
"sleep 60",
|
||||||
"docker stack deploy -c docker-compose-home.yml gitea",
|
#"docker stack deploy -c docker-compose-home.yml gitea",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ def steps(name, dependsOn):
|
||||||
#buildNginx("git"),
|
#buildNginx("git"),
|
||||||
#buildNginx("remote"),
|
#buildNginx("remote"),
|
||||||
#buildNginx("chat"),
|
#buildNginx("chat"),
|
||||||
scp("~/gitea-drone-stack"),
|
#scp("~/gitea-drone-stack"),
|
||||||
deploy(),
|
deploy(),
|
||||||
],
|
],
|
||||||
"services": [
|
"services": [
|
||||||
|
|
Reference in New Issue