From c572c0c913d1ef11b391e531563a593c3c244749 Mon Sep 17 00:00:00 2001 From: Robert Marshall Date: Mon, 26 Aug 2019 10:39:30 +0100 Subject: [PATCH] Add connection string and attempt to transform it --- Infrastructure/.drone.yml | 4 ++++ Website/appsettings.json | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Infrastructure/.drone.yml b/Infrastructure/.drone.yml index dcf5f64..f5cbc6d 100644 --- a/Infrastructure/.drone.yml +++ b/Infrastructure/.drone.yml @@ -15,9 +15,13 @@ steps: volumes: - name: output path: /output + environment: + ConnectionString: + from_secret: ConnectionString commands: - curl -sL https://deb.nodesource.com/setup_12.x | bash - - apt-get install -y nodejs - chmod +x ./build.sh - ./build.sh + - sed -i 's//${ConnectionString}/g' appsettings.json - cp -r ./output/* /output \ No newline at end of file diff --git a/Website/appsettings.json b/Website/appsettings.json index 782680e..99fda8c 100644 --- a/Website/appsettings.json +++ b/Website/appsettings.json @@ -4,6 +4,9 @@ "Default": "Warning" } }, + "ConnectionStrings": { + "database": "" + }, "AllowedHosts": "*", "Kestrel": { "EndPoints": {