diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-11-30 00:09:47 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-11-30 00:09:47 -0500 |
commit | 9f1ebaf5e1eb14a0f849c294a98e26ed4d5c7ee6 (patch) | |
tree | 7a6482d3e97cbcf4412e618fee3c2577a22983b5 /.drone.yml | |
parent | 08101d0cc8a3f769eb99f50c438f6aaa88e8dc69 (diff) | |
download | thedroneely.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.yml | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |