fp/scripts/postgrest-migrations.sh

13 lines
338 B
Bash
Raw Normal View History

2024-07-30 20:34:25 +00:00
#!/bin/bash
if [ -z $POSTGRES_PASSWORD ]; then
echo "POSTGRES_PASSWORD was missing in env. Are you executing this script via Tilt? (that is the intended method)"
exit 5
fi
kubectl -n futureporn run postgrest-migrations --image=https://gitea.futureporn.net/futureporn/migrations:latest --env PGPASSWORD=${POSTGRES_PASSWORD}