Get API key from secrets

This commit is contained in:
Robert Marshall 2021-05-08 12:45:02 +01:00
parent 534b89d0ed
commit 233f946ea6

View file

@ -25,6 +25,8 @@ steps:
from_secret: GitEndpoint
AuthEndpoint:
from_secret: AuthEndpoint
AuthApiKey:
from_secret: AuthApiKey
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt-get install -y nodejs
@ -34,6 +36,7 @@ steps:
- 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
- sed -i "s/<AuthApiKey>/$AuthApiKey/g" output/appsettings.json
- cp Infrastructure/website.service output/
- cp -r ./output/* /output
- name: restart service