Skip to content

Commit

Permalink
restarting pods in worflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Delyc committed Dec 19, 2024
1 parent a2978de commit e756687
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release-publish-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ jobs:
- name: Deploy to EKS
run: |
kubectl apply -f k8s/deployments
kubectl apply -f k8s/services
kubectl rollout restart deployment/mpm-backend
kubectl rollout restart deployment/mpm-frontend

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

View workflow job for this annotation

GitHub Actions / Run yamllint

37:1 [empty-lines] too many blank lines (1 > 0)
- name: Run commands in backend pod
run: |
# Get the backend pod name dynamically
BACKEND_POD=$(kubectl get pods -l app=mpm-backend -o jsonpath='{.items[0].metadata.name}')
echo "Backend pod: $BACKEND_POD"
# 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 e756687

Please sign in to comment.