chore: add build workflow
Some checks failed
Publish image / create-docker-images (push) Successful in 27s
Publish image / deploy (push) Successful in 15s
Publish image / rebase (push) Failing after 5s

This commit is contained in:
Alexander Navarro 2025-02-07 19:46:16 -03:00
parent 6288969c4d
commit bd32f1787d
4 changed files with 137 additions and 1 deletions

11
docker/entrypoint.sh Normal file
View 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:5432/${DB_DB}?sslmode=disable"
dbmate migrate --wait
exec "$@"