adding error & deploy notification
This commit is contained in:
@@ -76,7 +76,7 @@ jobs:
|
||||
env:
|
||||
KUBE_CONFIG: ${{ env.KUBE_CONFIG }}
|
||||
|
||||
- name: Test connection to cluster
|
||||
- name: Check connection to cluster
|
||||
run: |
|
||||
cd haven-notify/deploy
|
||||
kubectl --kubeconfig=kubeconfig.yaml cluster-info
|
||||
@@ -90,3 +90,10 @@ jobs:
|
||||
run: |
|
||||
cd haven-notify/deploy
|
||||
kubectl --kubeconfig=kubeconfig.yaml rollout restart deployment/haven-notify
|
||||
|
||||
- name: Send notification of deployment
|
||||
run: |
|
||||
curl -H "Content-Type: application/json" \
|
||||
-X POST \
|
||||
-d '{"title": "🚀 Haven Notify deployed!", "message": "Haven Notify has been successfully deployed and restarted."}' \
|
||||
http://haven.notify/notify
|
||||
|
Reference in New Issue
Block a user