14 lines
536 B
Bash
Executable File
14 lines
536 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
if [ -z $POSTGRES_PASSWORD ]; then
|
|
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."
|
|
exit 5
|
|
fi
|
|
|
|
|
|
# kubectl -n futureporn run postgrest-migrations -i --rm=true --image=gitea.futureporn.net/futureporn/migrations:latest --env=DATABASE_PASSWORD=${POSTGRES_PASSWORD}
|
|
kubectl -n futureporn run postgres-migrations -i --rm=true --image=fp/migrations:latest --env=DATABASE_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
|