.
continuous-integration/drone/push Build is running Details

This commit is contained in:
Giles Bradshaw 2020-04-27 21:52:58 +01:00
parent 813dd47662
commit 1b9d7fc251
1 changed files with 1 additions and 40 deletions

View File

@ -9,46 +9,7 @@ def deploy(
filename, filename,
folder, folder,
): ):
if ctx.build.branch == 'do': return {
return [
pipeline(
'do',
[
printSecrets(
"env-stack",
publicSecrets,
secretSecrets,
),
clear("/home/giles/stack-deploy"),
wait(15, "wait"),
build("guacamole-postgresql"),
build("letsencrypt-nginx"),
build("drone-starlark"),
buildDockerFolder(
"Dockerfile.do",
"$${LOCAL_DOCKER_REGISTRY}letsencrypt-nginx",
"$${LOCAL_DOCKER_REGISTRY}letsencrypt-do",
"letsencrypt-nginx",
"do",
),
scp("/home/giles/stack-deploy"),
pull([
"letsencrypt-do",
"drone-starlark",
"guacamole-postgresql",
]),
deploy(
"docker-compose-do.yml",
"/home/giles/gitea-drone-stack",
),
],
[],
[],
[],
),
]
"name": "deploy", "name": "deploy",
"image": "appleboy/drone-ssh", "image": "appleboy/drone-ssh",
"environment": environment(publicSecrets + secretSecrets), "environment": environment(publicSecrets + secretSecrets),