From 16eb8c9877f65b4489c4203af577c343a8a9bc5a Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Mon, 5 Oct 2020 11:43:54 +0100 Subject: [PATCH] . --- .drone/drone-home.yml | 32 +++++++++++++++++++++++++++++ .drone/lib/public-secrets.libsonnet | 4 ++++ 2 files changed, 36 insertions(+) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 1223f13..9808cd7 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -83,16 +83,32 @@ steps: - mail_service - mail_user - commento_origin + - ghost_mail_password + - ghost_mail_service + - ghost_mail_user + - ghost_mysql_root_password - mysql_root_password script: - rm -f env-ghost - "echo \"export MAIL_SERVICE='$${MAIL_SERVICE}'\" >> env-ghost # \"mail-service\"" - "echo \"export MAIL_USER='$${MAIL_USER}'\" >> env-ghost # \"mail-user\"" - "echo \"export COMMENTO_ORIGIN='$${COMMENTO_ORIGIN}'\" >> env-ghost # \"commento-origin\"" + - "echo \"export GHOST_MAIL_PASSWORD='$${GHOST_MAIL_PASSWORD}'\" >> env-ghost # \"ghost-mail-password\"" + - "echo \"export GHOST_MAIL_SERVICE='$${GHOST_MAIL_SERVICE}'\" >> env-ghost # \"ghost-mail-service\"" + - "echo \"export GHOST_MAIL_USER='$${GHOST_MAIL_USER}'\" >> env-ghost # \"ghost-mail-user\"" + - "echo \"export GHOST_MYSQL_ROOT_PASSWORD='$${GHOST_MYSQL_ROOT_PASSWORD}'\" >> env-ghost # \"ghost-mysql-root-password\"" - "echo \"export MYSQL_ROOT_PASSWORD='$${MYSQL_ROOT_PASSWORD}'\" >> env-ghost # \"mysql-root-password\"" environment: COMMENTO_ORIGIN: from_secret: commento-origin + GHOST_MAIL_PASSWORD: + from_secret: ghost-mail-password + GHOST_MAIL_SERVICE: + from_secret: ghost-mail-service + GHOST_MAIL_USER: + from_secret: ghost-mail-user + GHOST_MYSQL_ROOT_PASSWORD: + from_secret: ghost-mysql-root-password MAIL_SERVICE: from_secret: mail-service MAIL_USER: @@ -141,12 +157,20 @@ steps: - mail_service - mail_user - commento_origin + - ghost_mail_password + - ghost_mail_service + - ghost_mail_user + - ghost_mysql_root_password - mysql_root_password script: - export MYSQL_ROOT_PASSWORD=$${MYSQL_ROOT_PASSWORD} - export MAIL_SERVICE=$${MAIL_SERVICE} - export MAIL_USER=$${MAIL_USER} - export COMMENTO_ORIGIN=$${COMMENTO_ORIGIN} + - export GHOST_MAIL_PASSWORD=$${GHOST_MAIL_PASSWORD} + - export GHOST_MAIL_SERVICE=$${GHOST_MAIL_SERVICE} + - export GHOST_MAIL_USER=$${GHOST_MAIL_USER} + - export GHOST_MYSQL_ROOT_PASSWORD=$${GHOST_MYSQL_ROOT_PASSWORD} - export DOMAIN=$${DOMAIN} - export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN} - export REGISTRY_PORT=$${REGISTRY_PORT} @@ -159,6 +183,14 @@ steps: environment: COMMENTO_ORIGIN: from_secret: commento-origin + GHOST_MAIL_PASSWORD: + from_secret: ghost-mail-password + GHOST_MAIL_SERVICE: + from_secret: ghost-mail-service + GHOST_MAIL_USER: + from_secret: ghost-mail-user + GHOST_MYSQL_ROOT_PASSWORD: + from_secret: ghost-mysql-root-password MAIL_SERVICE: from_secret: mail-service MAIL_USER: diff --git a/.drone/lib/public-secrets.libsonnet b/.drone/lib/public-secrets.libsonnet index 7c25816..769a8db 100644 --- a/.drone/lib/public-secrets.libsonnet +++ b/.drone/lib/public-secrets.libsonnet @@ -2,4 +2,8 @@ 'mail-service', 'mail-user', 'commento-origin', + 'ghost-mail-password', + 'ghost-mail-service', + 'ghost-mail-user', + 'ghost-mysql-root-password' ]