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

This commit is contained in:
Giles Bradshaw 2020-10-05 11:43:54 +01:00
parent a18704e642
commit 16eb8c9877
2 changed files with 36 additions and 0 deletions

View File

@ -83,16 +83,32 @@ steps:
- mail_service - mail_service
- mail_user - mail_user
- commento_origin - commento_origin
- ghost_mail_password
- ghost_mail_service
- ghost_mail_user
- ghost_mysql_root_password
- mysql_root_password - mysql_root_password
script: script:
- rm -f env-ghost - rm -f env-ghost
- "echo \"export MAIL_SERVICE='$${MAIL_SERVICE}'\" >> env-ghost # \"mail-service\"" - "echo \"export MAIL_SERVICE='$${MAIL_SERVICE}'\" >> env-ghost # \"mail-service\""
- "echo \"export MAIL_USER='$${MAIL_USER}'\" >> env-ghost # \"mail-user\"" - "echo \"export MAIL_USER='$${MAIL_USER}'\" >> env-ghost # \"mail-user\""
- "echo \"export COMMENTO_ORIGIN='$${COMMENTO_ORIGIN}'\" >> env-ghost # \"commento-origin\"" - "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\"" - "echo \"export MYSQL_ROOT_PASSWORD='$${MYSQL_ROOT_PASSWORD}'\" >> env-ghost # \"mysql-root-password\""
environment: environment:
COMMENTO_ORIGIN: COMMENTO_ORIGIN:
from_secret: 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: MAIL_SERVICE:
from_secret: mail-service from_secret: mail-service
MAIL_USER: MAIL_USER:
@ -141,12 +157,20 @@ steps:
- mail_service - mail_service
- mail_user - mail_user
- commento_origin - commento_origin
- ghost_mail_password
- ghost_mail_service
- ghost_mail_user
- ghost_mysql_root_password
- mysql_root_password - mysql_root_password
script: script:
- export MYSQL_ROOT_PASSWORD=$${MYSQL_ROOT_PASSWORD} - export MYSQL_ROOT_PASSWORD=$${MYSQL_ROOT_PASSWORD}
- export MAIL_SERVICE=$${MAIL_SERVICE} - export MAIL_SERVICE=$${MAIL_SERVICE}
- export MAIL_USER=$${MAIL_USER} - export MAIL_USER=$${MAIL_USER}
- export COMMENTO_ORIGIN=$${COMMENTO_ORIGIN} - 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 DOMAIN=$${DOMAIN}
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN} - export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
- export REGISTRY_PORT=$${REGISTRY_PORT} - export REGISTRY_PORT=$${REGISTRY_PORT}
@ -159,6 +183,14 @@ steps:
environment: environment:
COMMENTO_ORIGIN: COMMENTO_ORIGIN:
from_secret: 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: MAIL_SERVICE:
from_secret: mail-service from_secret: mail-service
MAIL_USER: MAIL_USER:

View File

@ -2,4 +2,8 @@
'mail-service', 'mail-service',
'mail-user', 'mail-user',
'commento-origin', 'commento-origin',
'ghost-mail-password',
'ghost-mail-service',
'ghost-mail-user',
'ghost-mysql-root-password'
] ]