Skip to content

Commit ee3a3d3

Browse files
committed
Try a kubernetes restart action
1 parent 0af301a commit ee3a3d3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,19 @@ jobs:
5656
push: ${{ github.event_name != 'pull_request' }}
5757
tags: ${{ steps.meta.outputs.tags }}
5858
labels: ${{ steps.meta.outputs.labels }}
59+
60+
- name: Install kubectl
61+
if: github.event_name != 'pull_request'
62+
uses: azure/setup-kubectl@v3
63+
64+
- name: Update Context
65+
if: github.event_name != 'pull_request'
66+
uses: azure/k8s-set-context@v1
67+
with:
68+
method: kubeconfig
69+
kubeconfig: ${{ secrets.KUBE_CONFIG }}
70+
71+
- name: Restart deployment
72+
if: github.event_name != 'pull_request'
73+
run: |
74+
kubectl rollout restart deployment/j26-infratest -n j26-infratest

0 commit comments

Comments
 (0)