.
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
This commit is contained in:
parent
813dd47662
commit
1b9d7fc251
|
@ -9,46 +9,7 @@ def deploy(
|
|||
filename,
|
||||
folder,
|
||||
):
|
||||
if ctx.build.branch == 'do':
|
||||
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",
|
||||
),
|
||||
],
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
),
|
||||
]
|
||||
|
||||
return {
|
||||
"name": "deploy",
|
||||
"image": "appleboy/drone-ssh",
|
||||
"environment": environment(publicSecrets + secretSecrets),
|
||||
|
|
Reference in New Issue