Skip to content

Commit

Permalink
running seeding command in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Delyc committed Dec 19, 2024
1 parent a5578a1 commit b0fd527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-publish-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
- name: Run commands in backend pod
run: |
# Get the backend pod name dynamically
BACKEND_POD=$(kubectl get pods -l app=backend -o jsonpath='{.items[0].metadata.name}')
BACKEND_POD=$(kubectl get pods -l app=mpm-backend -o jsonpath='{.items[0].metadata.name}')
# Run the commands in sequence in the backend pod
kubectl exec $BACKEND_POD -- php artisan migrate-tenant:drop-demo-company
kubectl exec $BACKEND_POD -- php artisan migrate:fresh --seed

0 comments on commit b0fd527

Please sign in to comment.