generated from alecodes/base-template
chore: add build workflow
This commit is contained in:
parent
6288969c4d
commit
a017350d64
4 changed files with 139 additions and 2 deletions
11
docker/entrypoint.sh
Normal file
11
docker/entrypoint.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -e $DB_PASSWORD_FILE ]; then
|
||||
DB_PASSWORD=$(cat $DB_PASSWORD_FILE)
|
||||
fi
|
||||
|
||||
export DATABASE_URL="postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:5432/${DB_DB}?sslmode=disable"
|
||||
|
||||
dbmate migrate --wait
|
||||
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue