Use new projects API
This commit is contained in:
parent
11bca4cf53
commit
8bf483b334
24 changed files with 141 additions and 222 deletions
|
@ -19,21 +19,18 @@ steps:
|
|||
environment:
|
||||
ConnectionString:
|
||||
from_secret: ConnectionString
|
||||
GitDomain:
|
||||
from_secret: GitDomain
|
||||
GitToken:
|
||||
from_secret: GitToken
|
||||
BlogEndpoint:
|
||||
from_secret: BlogEndpoint
|
||||
GitEndpoint:
|
||||
from_secret: GitEndpoint
|
||||
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/<DatabaseConnectionString>/$ConnectionString/g" output/appsettings.json
|
||||
- sed -i "s/<GitDomain>/$GitDomain/g" output/appsettings.json
|
||||
- sed -i "s/<GitToken>/$GitToken/g" output/appsettings.json
|
||||
- sed -i "s/<BlogEndpoint>/$BlogEndpoint/g" output/appsettings.json
|
||||
- sed -i "s/<GitEndpoint>/$GitEndpoint/g" output/appsettings.json
|
||||
- cp Infrastructure/website.service output/
|
||||
- cp -r ./output/* /output
|
||||
- name: restart service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue