fix(ci): use service hostnames for postgres and redis
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -10,8 +10,8 @@ env:
|
||||
DJANGO_SECRET_KEY: ci-secret-key-not-for-production
|
||||
DJANGO_SETTINGS_MODULE: config.settings.test
|
||||
DJANGO_ALLOWED_HOSTS: testserver,localhost
|
||||
DATABASE_URL: postgres://training:training@localhost:5432/training_test
|
||||
REDIS_URL: redis://localhost:6379/0
|
||||
DATABASE_URL: postgres://training:training@postgres:5432/training_test
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
Reference in New Issue
Block a user