config.php and .drone.yml update

remotes/origin/database-api-implementation
Dorian HODIN 2 years ago committed by felixmielcarek
parent c2bdb7c46b
commit 41220d0303

@ -89,7 +89,7 @@ steps:
- name: db_location - name: db_location
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
IMAGENAME: mariadb:10 IMAGENAME: mariadb:10.5
CONTAINERNAME: mysql_location CONTAINERNAME: mysql_location
COMMAND: create COMMAND: create
# OVERWRITE: false # OVERWRITE: false

@ -4,7 +4,7 @@ function connection(): bool|int|mysqli
{ {
$username = $_ENV["USER"]; //Get the username $username = $_ENV["USER"]; //Get the username
$host = "172.17.0.1"; //Get the url of the database $host = "https://codefirst.iut.uca.fr/containers/mysql_location-dorianhodin"; //Get the url of the database
$password = $_ENV["PASSWORD"]; //Get the password for the user selected $password = $_ENV["PASSWORD"]; //Get the password for the user selected
$db_name = $_ENV["DATABASE"]; //Get the name of the database $db_name = $_ENV["DATABASE"]; //Get the name of the database

Loading…
Cancel
Save