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 e756687 commit d2ec53f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release-publish-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
- name: Deploy to EKS
run: |
kubectl rollout restart deployment/mpm-backend
kubectl rollout restart deployment/mpm-frontend
if kubectl get deployment mpm-backend; then
kubectl rollout restart deployment/mpm-backend
else
echo "mpm-backend deployment does not exist, applying initial deployment..."
kubectl apply -f k8s/mpm-backend-deployment.yaml
fi
if kubectl get deployment mpm-frontend; then
kubectl rollout restart deployment/mpm-frontend
else
echo "mpm-frontend deployment does not exist, applying initial deployment..."
kubectl apply -f k8s/mpm-frontend-deployment.yaml
fi

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

View workflow job for this annotation

GitHub Actions / Run yamllint

49:1 [empty-lines] too many blank lines (2 > 0)

0 comments on commit d2ec53f

Please sign in to comment.