fp/scripts/postgrest-migrations.sh

13 lines
338 B
Bash
Executable File

#!/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}