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": {