fp/scripts/postgrest-migrations.sh

13 lines
401 B
Bash
Raw Normal View History

2024-07-30 20:34:25 +00:00
#!/bin/bash
if [ -z $POSTGRES_PASSWORD ]; then
2024-07-30 20:50:30 +00:00
echo "POSTGRES_PASSWORD was missing in env. In development environment, runing this command via the UI button in Tilt is recommended as it sets the env var for you."
2024-07-30 20:34:25 +00:00
exit 5
fi
2024-07-30 20:50:30 +00:00
kubectl -n futureporn run postgrest-migrations -i --rm=true --image=gitea.futureporn.net/futureporn/migrations:latest --env=DATABASE_PASSWORD=${POSTGRES_PASSWORD}
2024-07-30 20:34:25 +00:00