properly set environment secret
Some checks failed
Build and Deploy API / build-and-deploy (push) Failing after 7s
Some checks failed
Build and Deploy API / build-and-deploy (push) Failing after 7s
This commit is contained in:
@@ -39,6 +39,5 @@ jobs:
|
||||
- name: Deploy container
|
||||
run: |
|
||||
export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
|
||||
export JWT_SECRET=${{ secrets.JWT_SECRET }}
|
||||
docker compose -f ./api/docker-compose.prod.yaml pull agologum-api
|
||||
docker compose -f ./api/docker-compose.prod.yaml up -d --force-recreate agologum-api
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"AllowedHosts": "*",
|
||||
"https_port": 443,
|
||||
"Jwt": {
|
||||
"Key": "${JWT_SECRET}",
|
||||
"Key": "",
|
||||
"Issuer": "agologum-api",
|
||||
"Audience": "agologum-users"
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@ services:
|
||||
- "5000:5000"
|
||||
networks:
|
||||
- agologum-net
|
||||
environment:
|
||||
- Jwt__Key=${JWT_SECRET} # this seems to be the right way to pass env variables with secrets
|
||||
|
||||
networks:
|
||||
agologum-net:
|
||||
|
||||
Reference in New Issue
Block a user