File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
POSTGRESQL_HOST : 127.0.0.1
20
20
POSTGRESQL_DB : library
21
21
POSTGRESQL_ALLOW_EMPTY_PASSWORD : true
22
- DB_USER : $DB_USER
22
+ POSTGRESQL_USER : $DB_USERNAME
23
23
POSTGRES_PASSWORD : $DB_PASSWORD
24
24
# restart: on-failure # Restart the container if it exits due to an error
25
25
steps :
41
41
- run :
42
42
name : Prepare database for tests
43
43
command : |
44
- psql -h localhost -U postgres -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASSWORD' ;"
45
- psql -h localhost -U postgres -c "CREATE DATABASE library WITH OWNER = $DB_USER ;"
46
- psql -h localhost -U $DB_USER -w -d library < library.sql
44
+ psql -h localhost -U postgres -c "CREATE USER $DB_USERNAME WITH PASSWORD '$DB_PASSWORD' ;"
45
+ psql -h localhost -U postgres -c "CREATE DATABASE library WITH OWNER = $DB_USERNAME ;"
46
+ psql -h localhost -U $DB_USERNAME -w -d library < library.sql
47
47
# - run: pipenv run pytest -v Needs /etc/hypercorn.toml
48
48
- run :
49
49
name : Build docker image
You can’t perform that action at this time.
0 commit comments