Add connection string and attempt to transform it

This commit is contained in:
Robert Marshall 2019-08-26 10:39:30 +01:00
parent 82128bb005
commit c572c0c913
2 changed files with 7 additions and 0 deletions

View file

@ -15,9 +15,13 @@ steps:
volumes: volumes:
- name: output - name: output
path: /output path: /output
environment:
ConnectionString:
from_secret: ConnectionString
commands: commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - - curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt-get install -y nodejs - apt-get install -y nodejs
- chmod +x ./build.sh - chmod +x ./build.sh
- ./build.sh - ./build.sh
- sed -i 's/<DatabaseConnectionString>/${ConnectionString}/g' appsettings.json
- cp -r ./output/* /output - cp -r ./output/* /output

View file

@ -4,6 +4,9 @@
"Default": "Warning" "Default": "Warning"
} }
}, },
"ConnectionStrings": {
"database": "<DatabaseConnectionString>"
},
"AllowedHosts": "*", "AllowedHosts": "*",
"Kestrel": { "Kestrel": {
"EndPoints": { "EndPoints": {