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

This commit is contained in:
Alexander Navarro 2025-02-07 19:46:16 -03:00
parent 6288969c4d
commit 97c344c7f2
4 changed files with 138 additions and 2 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 "$@"