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 a1bcb98 commit a5578a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release-publish-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ jobs:
run: |
kubectl apply -f k8s/deployments
kubectl apply -f k8s/services
- 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}')

Check failure on line 42 in .github/workflows/release-publish-cluster.yaml

View workflow job for this annotation

GitHub Actions / Run yamllint

42:1 [trailing-spaces] trailing spaces
# 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 a5578a1

Please sign in to comment.