Add API key authorisation.
This commit is contained in:
parent
f8e8774d8c
commit
c041c42dcf
8 changed files with 124 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue