diff --git a/drone-starlark/repos/stack/drone.star b/drone-starlark/repos/stack/drone.star deleted file mode 100644 index 082bba5..0000000 --- a/drone-starlark/repos/stack/drone.star +++ /dev/null @@ -1,74 +0,0 @@ -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//stack:public-secrets.star", "publicSecrets") -load("@this//stack: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, - [ - wait(15, "wait"), - printSecrets( - "env-stack", - publicSecrets, - secretSecrets, - ), - scp(base), - 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, - [], - [], - [], - [], - ) - \ No newline at end of file diff --git a/drone-starlark/repos/stack/public-secrets.star b/drone-starlark/repos/stack/public-secrets.star deleted file mode 100644 index f229e64..0000000 --- a/drone-starlark/repos/stack/public-secrets.star +++ /dev/null @@ -1,34 +0,0 @@ -publicSecrets = [ - "title", - "description", - "certbot-email", - "drone-domain", - "drone-gitea-client-id", - "drone-gitea-server", - "drone-server-host", - "git-domain", - "local-docker-registry", - "ssh-host", - "guacamole-postgres-db", - "guacamole-postgres-user", - "sigyl-stack-root", - "sigyl-stack-name", - "ghost-mail-service", - "ghost-mail-user", - "chat-admin-name", - "chat-admin-email", - "gitea-mailer-host", - "gitea-mailer-from", - "gitea-mailer-user", - "gitea-app-name", - "commento-origin", - "commento-smtp-host", - "commento-smtp-port", - "commento-smtp-username", - "commento-smtp-from-address", - "commento-forbid-new-owners", - "commento-postgres-db", - "commento-postgres-user", - "commento-github-key", - "nagios-admin-user", -] \ No newline at end of file diff --git a/drone-starlark/repos/stack/secret-secrets.star b/drone-starlark/repos/stack/secret-secrets.star deleted file mode 100644 index 6b38263..0000000 --- a/drone-starlark/repos/stack/secret-secrets.star +++ /dev/null @@ -1,24 +0,0 @@ -secretSecrets = [ - "drone-convert-secret", - "drone-gitea-client-secret", - "drone-rpc-secret", - "guacamole-postgres-password", - "ngrok-auth-token", - "ghost-mail-password", - "ghost-mysql-root-password", - "chat-admin-password", - "gitea-server-lfs-jwt-secret", - "gitea-security-secret-key", - "gitea-security-internal-token", - "gitea-oauth2-jwt-secret", - "gitea-mailer-passwd", - "commento-smtp-password", - "commento-askimet-key", - "commento-postgres-password", - "commento-github-secret", - "matomo-mysql-root-password", - "matomo-mysql-password", - "nagios-admin-password", - "zabbix-mysql-root-password", - "zabbix-mysql-password", -] \ No newline at end of file diff --git a/drone-starlark/repos/stack/stack-name._star b/drone-starlark/repos/stack/stack-name._star deleted file mode 100644 index 6d0534a..0000000 --- a/drone-starlark/repos/stack/stack-name._star +++ /dev/null @@ -1 +0,0 @@ -stackName='${SIGYL_STACK_NAME}' \ No newline at end of file diff --git a/drone-starlark/repos/stack/stack-root._star b/drone-starlark/repos/stack/stack-root._star deleted file mode 100644 index 73ba038..0000000 --- a/drone-starlark/repos/stack/stack-root._star +++ /dev/null @@ -1 +0,0 @@ -stackRoot='${SIGYL_STACK_ROOT}' \ No newline at end of file diff --git a/drone-starlark/run.sh b/drone-starlark/run.sh index f298730..fe84c69 100644 --- a/drone-starlark/run.sh +++ b/drone-starlark/run.sh @@ -1,6 +1,3 @@ -envsubst < /repos/stack/stack-name._star > /repos/stack/stack-name.star -envsubst < /repos/stack/stack-root._star > /repos/stack/stack-root.star - envsubst < /repos/proxy/stack-name._star > /repos/proxy/stack-name.star envsubst < /repos/proxy/stack-root._star > /repos/proxy/stack-root.star