Add API key authorisation.

This commit is contained in:
Robert Marshall 2021-05-08 15:15:02 +01:00
parent f8e8774d8c
commit c041c42dcf
8 changed files with 124 additions and 5 deletions

View file

@ -18,10 +18,16 @@ steps:
environment:
ConnectionString:
from_secret: ConnectionString
AuthEndpoint:
from_secret: AuthEndpoint
AuthApiKey:
from_secret: AuthApiKey
commands:
- chmod +x ./build.sh
- ./build.sh
- sed -i "s/<DatabaseConnectionString>/$ConnectionString/g" output/appsettings.json
- sed -i "s/<AuthEndpoint>/$AuthEndpoint/g" output/appsettings.json
- sed -i "s/<AuthApiKey>/$AuthApiKey/g" output/appsettings.json
- cp api.blog.service output/
- cp -r ./output/* /output
- name: restart service
@ -45,4 +51,4 @@ steps:
when:
status:
- changed
- failure
- failure