fix(ci): fix migration pod log retrieval
This commit is contained in:
@@ -319,7 +319,7 @@ jobs:
|
||||
|
||||
# Print logs regardless of outcome so failures are diagnosable
|
||||
echo "--- Migration pod logs ---"
|
||||
kubectl logs -n optima -l app=prisma-migrate --tail=200 || true
|
||||
kubectl logs -n optima "$JOB" --tail=200 || true
|
||||
|
||||
# Determine outcome by checking the job's actual conditions
|
||||
if kubectl get -n optima "$JOB" -o jsonpath='{.status.conditions[?(@.type=="Complete")].status}' | grep -q "True"; then
|
||||
|
||||
@@ -10,6 +10,9 @@ spec:
|
||||
ttlSecondsAfterFinished: 86400
|
||||
activeDeadlineSeconds: 180
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: prisma-migrate
|
||||
spec:
|
||||
containers:
|
||||
- name: migrate
|
||||
|
||||
Reference in New Issue
Block a user