.
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
This commit is contained in:
parent
cde071d972
commit
02ada23f51
50
.drone.star
50
.drone.star
|
@ -15,6 +15,7 @@ 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 buildHome():
|
||||
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):
|
||||
if ctx.build.branch == 'home-deploy':
|
||||
|
@ -85,6 +43,12 @@ def main(ctx):
|
|||
pipeline(
|
||||
'home-deploy',
|
||||
[
|
||||
printSecrets(
|
||||
"env-stack",
|
||||
publicSecrets,
|
||||
secretSecrets,
|
||||
),
|
||||
wait(15, "wait"),
|
||||
#build("guacamole-postgresql"),
|
||||
#build("ngrok-gitea"),
|
||||
#build("letsencrypt-nginx"),
|
||||
|
|
Reference in New Issue