chore: add build workflow
Some checks failed
Publish image / create-docker-images (push) Successful in 30s
Publish image / deploy (push) Successful in 15s
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 a017350d64
4 changed files with 139 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_HOST}:5432/${DB_DB}?sslmode=disable"
dbmate migrate --wait
exec "$@"