.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-28 20:22:17 +01:00
parent 5b5935afff
commit 1e2d4d6d00
3 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,7 @@ def deploy(
name, name,
folder, folder,
secrets, secrets,
commands,
): ):
return { return {
"name": "deploy", "name": "deploy",
@ -29,6 +30,6 @@ def deploy(
"docker stack rm {name}".format(name = name), "docker stack rm {name}".format(name = name),
"sleep 30", "sleep 30",
"docker stack deploy -c {filename} {name}".format(name= name, filename = filename), "docker stack deploy -c {filename} {name}".format(name= name, filename = filename),
] ] + commands
} }
} }

View File

@ -22,6 +22,7 @@ def drone(
branch, branch,
base, base,
name, name,
commands,
): ):
if ctx.build.branch == branch: if ctx.build.branch == branch:
return [ return [
@ -64,7 +65,8 @@ def drone(
"docker-compose-home.yml", "docker-compose-home.yml",
name, name,
base, base,
publicSecrets + secretSecrets publicSecrets + secretSecrets,
commands
), ),
], ],

View File

@ -5,6 +5,7 @@ publicSecrets = [
"drone-domain", "drone-domain",
"drone-gitea-client-id", "drone-gitea-client-id",
"drone-gitea-server", "drone-gitea-server",
"drone-server-host",
"git-domain", "git-domain",
"local-docker-registry", "local-docker-registry",
"remote-domain", "remote-domain",