diff --git a/.drone.yml b/.drone.yml index 85402d5..329b836 100644 --- a/.drone.yml +++ b/.drone.yml @@ -83,6 +83,8 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_PASSWORD: from_secret: db_password + CODEFIRST_CLIENTDRONE_ENV_ROOT_PASSWORD: + from_secret: db_root_password depends_on: [ php_script ] # database container deployment diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index 2a772d1..c8db5be 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -5,8 +5,8 @@ function connection(): bool|int|mysqli $username = "root"; //Get the username $host = "193.49.118.214"; //Get the url of the database - $password = $_ENV["MARIADB_ROOT_PASSWORD"]; //Get the password for the user selected - $db_name = $_ENV["MARIADB_DATABASE"]; //Get the name of the database + $password = $_ENV["ROOT_PASSWORD"]; //Get the password for the user selected + $db_name = $_ENV["DATABASE"]; //Get the name of the database try { //Try to connect to the database