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

This commit is contained in:
Giles Bradshaw 2020-04-27 17:58:21 +01:00
parent cde071d972
commit 02ada23f51
1 changed files with 7 additions and 43 deletions

View File

@ -15,6 +15,7 @@ load("@this//:pull.star", "pull")
load("@this//:deploy.star", "deploy") load("@this//:deploy.star", "deploy")
load("@this//:build-folder.star", "buildFolder") load("@this//:build-folder.star", "buildFolder")
load("@this//:build-docker-folder.star", "buildDockerFolder") load("@this//:build-docker-folder.star", "buildDockerFolder")
load("@this//:pipeline.star", "pipeline")
def buildHome(): def buildHome():
return { return {
@ -35,49 +36,6 @@ def buildHome():
], ],
} }
def pipeline(name, steps, dependsOn):
return {
"kind": "pipeline",
"name": name,
"depends_on": dependsOn,
"steps": [
printSecrets(
"env-stack",
publicSecrets,
secretSecrets,
),
wait(15, "wait"),
] + steps,
"services": [
{
"name": "docker",
"image": "docker:dind",
"privileged": True,
"volumes": [
{
"name": "dockersock",
"path": "/var/run",
},
{
"name": "ca",
"path": "/etc/docker/certs.d",
},
],
}
],
"volumes": [
{
"name": "dockersock",
"temp": {},
},
{
"name": "ca",
"host": {
"path": "/home/giles/gitea-drone-stack/.ca",
},
},
],
}
def main(ctx): def main(ctx):
if ctx.build.branch == 'home-deploy': if ctx.build.branch == 'home-deploy':
@ -85,6 +43,12 @@ def main(ctx):
pipeline( pipeline(
'home-deploy', 'home-deploy',
[ [
printSecrets(
"env-stack",
publicSecrets,
secretSecrets,
),
wait(15, "wait"),
#build("guacamole-postgresql"), #build("guacamole-postgresql"),
#build("ngrok-gitea"), #build("ngrok-gitea"),
#build("letsencrypt-nginx"), #build("letsencrypt-nginx"),