Skip to content

Commit

Permalink
Source .env when running docker containers (#6927)
Browse files Browse the repository at this point in the history
Restore previous functionality.

Ensure .env exists before building server.

Co-authored-by: github-actions <github-actions@github.com>
  • Loading branch information
eradman and github-actions authored Apr 25, 2024
1 parent 0624471 commit dbab9ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Build Docker Images
run: |
set -x
touch .env
docker compose build
docker compose up -d
sleep 10
Expand Down Expand Up @@ -175,6 +176,7 @@ jobs:
- name: Setup Redash Server
run: |
set -x
touch .env
yarn build
yarn cypress build
yarn cypress start -- --skip-db-seed
Expand Down
2 changes: 2 additions & 0 deletions compose.base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ services:
REDASH_COOKIE_SECRET: ${REDASH_COOKIE_SECRET}
REDASH_SECRET_KEY: ${REDASH_SECRET_KEY}
REDASH_PRODUCTION: ${REDASH_PRODUCTION:-true}
env_file:
- .env

0 comments on commit dbab9ca

Please sign in to comment.