Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gitignore): environment variable introduction #364

Merged
merged 3 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# PORT
PORT=
PORT=3000

# NODE
NODE_ENV=development
TZ=Europe/London 
LOG_LEVEL=debug
REDACT_LOGS=false
SINGLE_LINE_LOG_FORMAT=true
SINGLE_LINE_LOG_FORMAT=false

# Swagger
SWAGGER_USER=
Expand Down Expand Up @@ -34,12 +37,13 @@ DATABASE_CEDAR_NAME=
DATABASE_CIS_HOST=
DATABASE_CIS_NAME=

# API
API_KEY=

# INFORMATICA
APIM_INFORMATICA_URL=
APIM_INFORMATICA_USERNAME=
APIM_INFORMATICA_PASSWORD=
APIM_INFORMATICA_MAX_REDIRECTS=
APIM_INFORMATICA_TIMEOUT=

# API
API_KEY=
7 changes: 4 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ jobs:
--revision-suffix v${{ github.run_id }} \
--set-env-vars \
"PORT=${{ secrets.PORT }}" \
"NODE_ENV=${{ secrets.NODE_ENV }}" \
"LOG_LEVEL=${{ secrets.LOG_LEVEL }}" \
"REDACT_LOGS=${{ secrets.REDACT_LOGS }}" \
"TZ=${{ secrets.TZ }}" \
"NODE_ENV=${{ secrets.NODE_ENV }}" \
"LOG_LEVEL=${{ vars.LOG_LEVEL }}" \
"REDACT_LOGS=${{ vars.REDACT_LOGS }}" \
"SINGLE_LINE_LOG_FORMAT=${{ vars.SINGLE_LINE_LOG_FORMAT }}" \
"SWAGGER_USER=${{ secrets.SWAGGER_USER }}" \
"SWAGGER_PASSWORD=${{ secrets.SWAGGER_PASSWORD }}" \
"DATABASE_PORT=${{ secrets.DATABASE_PORT }}" \
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# UKEF
.env*
.env
.env.prod

# compiled output
/dist
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ services:
environment:
PORT:
NODE_ENV:
TZ:
LOG_LEVEL:
REDACT_LOGS:
TZ:
SINGLE_LINE_LOG_FORMAT:
SWAGGER_USER:
SWAGGER_PASSWORD:
DATABASE_PORT:
Expand Down
Loading