Add connection string and attempt to transform it
This commit is contained in:
parent
82128bb005
commit
c572c0c913
2 changed files with 7 additions and 0 deletions
|
@ -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
|
|
@ -4,6 +4,9 @@
|
||||||
"Default": "Warning"
|
"Default": "Warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"database": "<DatabaseConnectionString>"
|
||||||
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"Kestrel": {
|
"Kestrel": {
|
||||||
"EndPoints": {
|
"EndPoints": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue