From fbd56d4e33c6df77c2f8da39038f8ebad06ccf06 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 30 Oct 2020 20:49:18 -0600 Subject: [PATCH] Db_connection_string --- OFBButte.Api/appsettings.Production.json | 2 +- drone.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OFBButte.Api/appsettings.Production.json b/OFBButte.Api/appsettings.Production.json index 9168975..820b09d 100644 --- a/OFBButte.Api/appsettings.Production.json +++ b/OFBButte.Api/appsettings.Production.json @@ -4,6 +4,6 @@ "MissionaryEmailAddress": "contact@oldfashionbaptistbutte.com" }, "ConnectionStrings": { - "OFBContext": "server=localhost;database=ofb2;user=ofbapi2;password={{db_pass}};" + "OFBContext": "server=localhost;database=admin_ofb_missionary;user=admin_ofbbutte;password={{dbpass}};" } } diff --git a/drone.yml b/drone.yml index 6bdbb87..00dbc3e 100644 --- a/drone.yml +++ b/drone.yml @@ -7,12 +7,14 @@ steps: volumes: - name: docker_sock path: /var/run/docker.sock + environment: + ConnectionStrings__OFBContext: + from_secret: db_connection commands: - docker build --tag ofb_api . - docker rm -f ofb_api || true - docker run --name ofb_api --restart always -d -p "8222:8222" ofb_api - volumes: - name: docker_sock host: