feat: scheme is configured
This commit is contained in:
parent
ad7601e7a1
commit
ca0e2e73e7
|
@ -83,12 +83,14 @@ steps:
|
|||
- mail_service
|
||||
- mail_user
|
||||
- commento_origin
|
||||
- scheme
|
||||
- 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 SCHEME='$${SCHEME}'\" >> env-ghost # \"scheme\""
|
||||
- "echo \"export MYSQL_ROOT_PASSWORD='$${MYSQL_ROOT_PASSWORD}'\" >> env-ghost # \"mysql-root-password\""
|
||||
environment:
|
||||
COMMENTO_ORIGIN:
|
||||
|
@ -99,6 +101,8 @@ steps:
|
|||
from_secret: mail-user
|
||||
MYSQL_ROOT_PASSWORD:
|
||||
from_secret: mysql-root-password
|
||||
SCHEME:
|
||||
from_secret: scheme
|
||||
|
||||
- name: scp
|
||||
image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47
|
||||
|
@ -141,12 +145,14 @@ steps:
|
|||
- mail_service
|
||||
- mail_user
|
||||
- commento_origin
|
||||
- scheme
|
||||
- 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 SCHEME=$${SCHEME}
|
||||
- export DOMAIN=$${DOMAIN}
|
||||
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
|
||||
- export REGISTRY_PORT=$${REGISTRY_PORT}
|
||||
|
@ -165,6 +171,8 @@ steps:
|
|||
from_secret: mail-user
|
||||
MYSQL_ROOT_PASSWORD:
|
||||
from_secret: mysql-root-password
|
||||
SCHEME:
|
||||
from_secret: scheme
|
||||
|
||||
services:
|
||||
- name: docker
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
'mail-service',
|
||||
'mail-user',
|
||||
'commento-origin',
|
||||
'scheme'
|
||||
]
|
||||
|
|
|
@ -17,6 +17,7 @@ services:
|
|||
- ghost-content-logs:/var/lib/ghost/content/logs
|
||||
environment:
|
||||
- DOMAIN=$DOMAIN
|
||||
- SCHEME=$SCHEME
|
||||
- MAIL-SERVICE=$MAIL-SERVICE
|
||||
- MAIL-USER=$MAIL-USER
|
||||
- MAIL-PASSWORD=$MAIL-PASSWORD
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"url": "https://${DOMAIN}/",
|
||||
"url": "${SCHEME}://${DOMAIN}/",
|
||||
"server": {
|
||||
"port": 2368,
|
||||
"host": "0.0.0.0"
|
||||
|
|
Loading…
Reference in New Issue