Skip to content

Commit 69eec29

Browse files
committed
fix(ci): fix bug override in docker compose
1 parent d3e0ca1 commit 69eec29

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@ jobs:
3333
DB_USER: ${{ secrets.DB_USER }}
3434
DB_NAME: ${{ secrets.DB_NAME }}
3535
run: |
36-
cat > .env.prod <<'EOF'
36+
cat > .env.prod <<EOF
3737
DJANGO_ENV=prod
38-
SECRET_KEY=${SECRET_KEY}
38+
SECRET_KEY=$SECRET_KEY
3939
DEBUG=False
40-
ALLOWED_HOSTS=*
41-
DB_NAME=${DB_NAME}
42-
DB_USER=${DB_USER}
43-
DB_PASSWORD=${DB_PASSWORD}
44-
DB_HOST=postgres
40+
ALLOWED_HOSTS=localhost,127.0.0.1
41+
DB_NAME=$DB_NAME
42+
DB_USER=$DB_USER
43+
DB_PASSWORD=$DB_PASSWORD
44+
DB_HOST=db
4545
DB_PORT=5432
4646
EOF
47-
echo ".env.prod created (secrets come from repo secrets)."
47+
echo ".env.prod created:"
48+
cat .env.prod
4849
4950
- name: Build and start stack (prod compose)
5051
run: |

docker-compose.prod.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,3 @@ services:
1111
timeout: 5s
1212
retries: 5
1313
start_period: 20s
14-
15-
db:
16-
env_file:
17-
- .env.prod

0 commit comments

Comments
 (0)