.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2140d141e7
commit
22b598272e
|
@ -1,83 +1,10 @@
|
||||||
load("@this//:from-secret.star", "fromSecret")
|
|
||||||
load("@this//:print-secrets.star", "printSecrets")
|
|
||||||
|
|
||||||
load("@this//:map.star", "map")
|
load("@this//stack:drone.star", "drone")
|
||||||
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//stack:public-secrets.star", "publicSecrets")
|
|
||||||
load("@this//stack:secret-secrets.star", "secretSecrets")
|
|
||||||
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 main(ctx):
|
def main(ctx):
|
||||||
if ctx.build.branch == 'home-deploy':
|
return drone(
|
||||||
return [
|
"home-deploy",
|
||||||
pipeline(
|
"/home/giles/gitea-drone-stack",
|
||||||
'home-deploy',
|
"gitea",
|
||||||
[
|
)
|
||||||
printSecrets(
|
|
||||||
"env-stack",
|
|
||||||
publicSecrets,
|
|
||||||
secretSecrets,
|
|
||||||
),
|
|
||||||
wait(15, "wait"),
|
|
||||||
#build("guacamole-postgresql"),
|
|
||||||
#build("ngrok-gitea"),
|
|
||||||
#build("letsencrypt-nginx"),
|
|
||||||
build("drone-starlark"),
|
|
||||||
buildDockerFolder(
|
|
||||||
"Dockerfile.git",
|
|
||||||
"$${LOCAL_DOCKER_REGISTRY}letsencrypt-nginx",
|
|
||||||
"$${LOCAL_DOCKER_REGISTRY}letsencrypt-git",
|
|
||||||
"letsencrypt-nginx",
|
|
||||||
"git",
|
|
||||||
),
|
|
||||||
scp("/home/giles/gitea-drone-stack"),
|
|
||||||
pull([
|
|
||||||
"letsencrypt-git",
|
|
||||||
"letsencrypt-drone",
|
|
||||||
"drone-starlark",
|
|
||||||
"guacamole-postgresql",
|
|
||||||
]),
|
|
||||||
deploy(
|
|
||||||
"docker-compose-home.yml",
|
|
||||||
"gitea",
|
|
||||||
"/home/giles/gitea-drone-stack",
|
|
||||||
publicSecrets + secretSecrets
|
|
||||||
|
|
||||||
),
|
|
||||||
],
|
|
||||||
[],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name": "ca",
|
|
||||||
"host": {
|
|
||||||
"path": "/home/giles/gitea-drone-stack/.ca",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name": "ca",
|
|
||||||
"path": "/etc/docker/certs.d",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
),
|
|
||||||
]
|
|
||||||
else:
|
|
||||||
return pipeline(
|
|
||||||
ctx.build.branch,
|
|
||||||
[],
|
|
||||||
[],
|
|
||||||
[],
|
|
||||||
[],
|
|
||||||
)
|
|
||||||
|
|
Reference in New Issue