aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-11-30 00:09:47 -0500
committerThedro Neely <thedroneely@gmail.com>2019-11-30 00:09:47 -0500
commit9f1ebaf5e1eb14a0f849c294a98e26ed4d5c7ee6 (patch)
tree7a6482d3e97cbcf4412e618fee3c2577a22983b5 /.drone.yml
parent08101d0cc8a3f769eb99f50c438f6aaa88e8dc69 (diff)
downloadthedroneely.com-9f1ebaf5e1eb14a0f849c294a98e26ed4d5c7ee6.tar.gz
thedroneely.com-9f1ebaf5e1eb14a0f849c294a98e26ed4d5c7ee6.tar.bz2
thedroneely.com-9f1ebaf5e1eb14a0f849c294a98e26ed4d5c7ee6.zip
AppConfigBuild.php: Move hardcoded metadata to environment variables
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index cfa6796..9debaf5 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -18,10 +18,18 @@ steps:
environment:
+ EMAIL_HOST:
+ from_secret: email_host
+ EMAIL_PORT:
+ from_secret: email_port
+ EMAIL_NAME:
+ from_secret: email_name
EMAIL_USERNAME:
from_secret: email_username
EMAIL_PASSWORD:
from_secret: email_password
+ PGSQL_DATABASE:
+ from_secret: pgsql_database
PGSQL_USERNAME:
from_secret: pgsql_username
PGSQL_PASSWORD:
@@ -30,8 +38,12 @@ steps:
commands:
- mv AppConfigBuild.php AppConfig.php
+ - sed -i "s|pgsql_database|$PGSQL_DATABASE|" AppConfig.php
- sed -i "s|pgsql_username|$PGSQL_USERNAME|" AppConfig.php
- sed -i "s|pgsql_password|$PGSQL_PASSWORD|" AppConfig.php
+ - sed -i "s|email_host|$EMAIL_HOST|" AppConfig.php
+ - sed -i "s|email_port|$EMAIL_PORT|" AppConfig.php
+ - sed -i "s|email_name|$EMAIL_NAME|" AppConfig.php
- sed -i "s|email_username|$EMAIL_USERNAME|" AppConfig.php
- sed -i "s|email_password|$EMAIL_PASSWORD|" AppConfig.php