.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
7e461d5744
commit
c2c154723b
|
@ -0,0 +1,74 @@
|
|||
load("@this//:from-secret.star", "fromSecret")
|
||||
load("@this//:print-secrets.star", "printSecrets")
|
||||
|
||||
load("@this//:map.star", "map")
|
||||
load("@this//:environment.star", "environment")
|
||||
load("@this//:echo.star", "echo")
|
||||
load("@this//:export.star", "export")
|
||||
load("@this//:echo-secret.star", "echoSecret")
|
||||
load("@this//:wait.star", "wait")
|
||||
load("@this//:build.star", "build")
|
||||
load("@this//:scp.star", "scp")
|
||||
load("@this//huginn:public-secrets.star", "publicSecrets")
|
||||
load("@this//huginn:secret-secrets.star", "secretSecrets")
|
||||
load("@this//:rescale.star", "rescale")
|
||||
load("@this//:pull.star", "pull")
|
||||
load("@this//:deploy.star", "deploy")
|
||||
load("@this//:build-folder.star", "buildFolder")
|
||||
load("@this//:build-docker-folder.star", "buildDockerFolder")
|
||||
load("@this//:pipeline.star", "pipeline")
|
||||
|
||||
def drone(
|
||||
ctx,
|
||||
branch,
|
||||
base,
|
||||
name,
|
||||
commands,
|
||||
):
|
||||
if ctx.build.branch == branch:
|
||||
return [
|
||||
pipeline(
|
||||
branch,
|
||||
[
|
||||
scp(base),
|
||||
wait(15, "wait"),
|
||||
printSecrets(
|
||||
"env-huginn",
|
||||
publicSecrets,
|
||||
secretSecrets,
|
||||
),
|
||||
deploy(
|
||||
"docker-compose.yml",
|
||||
name,
|
||||
base,
|
||||
publicSecrets + secretSecrets,
|
||||
commands,
|
||||
ctx
|
||||
),
|
||||
],
|
||||
[],
|
||||
[
|
||||
{
|
||||
"name": "ca",
|
||||
"host": {
|
||||
"path": "/etc/docker/certs.d",
|
||||
},
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "ca",
|
||||
"path": "/etc/docker/certs.d",
|
||||
},
|
||||
]
|
||||
),
|
||||
]
|
||||
else:
|
||||
return pipeline(
|
||||
ctx.build.branch,
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
publicSecrets = [
|
||||
"smtp-domain",
|
||||
"smtp-user-name",
|
||||
"smtp-server",
|
||||
"smtp-port",
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
secretSecrets = [
|
||||
"smtp-password",
|
||||
"invitation-code",
|
||||
"database-password",
|
||||
]
|
|
@ -0,0 +1 @@
|
|||
stackName='huginn'
|
|
@ -0,0 +1 @@
|
|||
stackRoot='/stack/huggin'
|
Loading…
Reference in New Issue