Replace auth endpoint in config with stored secret

This commit is contained in:
Robert Marshall 2020-04-12 14:43:34 +01:00
parent 1329683f58
commit a8f2dbd66e

View file

@ -23,6 +23,8 @@ steps:
from_secret: BlogEndpoint
GitEndpoint:
from_secret: GitEndpoint
AuthEndpoint:
from_secret: AuthEndpoint
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt-get install -y nodejs
@ -31,6 +33,7 @@ steps:
- sed -i "s/<DatabaseConnectionString>/$ConnectionString/g" output/appsettings.json
- sed -i "s/<BlogEndpoint>/$BlogEndpoint/g" output/appsettings.json
- sed -i "s/<GitEndpoint>/$GitEndpoint/g" output/appsettings.json
- sed -i "s/<AuthEndpoint>/$AuthEndpoint/g" output/appsettings.json
- cp Infrastructure/website.service output/
- cp -r ./output/* /output
- name: restart service