feat: add environment variable debugging to migration job
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 6m3s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 6m3s
This commit is contained in:
parent
5820150ec9
commit
2bf8d04657
@ -16,6 +16,8 @@ spec:
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
echo "=== Environment Variables ==="
|
||||
env | grep -i postgres
|
||||
echo "=== Testing Connection ==="
|
||||
PGPASSWORD=$POSTGRES_PASSWORD psql -h $POSTGRES_HOSTNAME -p $POSTGRES_PORT -U $POSTGRES_USER -d $POSTGRES_DB -c "SELECT 1"
|
||||
echo "=== Running Migrations ==="
|
||||
@ -28,7 +30,7 @@ spec:
|
||||
- name: POSTGRES_PORT
|
||||
value: "{{ .Values.backend.env.POSTGRES_PORT }}"
|
||||
- name: POSTGRES_DB
|
||||
value: "{{ .Values.backend.env.POSTGRES_NAME }}"
|
||||
value: "{{ .Values.postgres.dbName }}"
|
||||
- name: POSTGRES_USER
|
||||
value: "{{ .Values.backend.env.POSTGRES_USER }}"
|
||||
- name: POSTGRES_PASSWORD
|
||||
|
Loading…
Reference in New Issue
Block a user