File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow should deploy meet@mensa to the chair's Rancher Kubernetes cluster every time code is pushed into main branch
2+ name : Deploy to Kubernetes Cluster
3+
4+ # Currently, this workflow can only be triggered manually.
5+ on :
6+ workflow_dispatch :
7+
8+ jobs :
9+
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+
14+ # Checkout git repo
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ # Use Azure's kubectl installation action
19+ - name : Install Kubectl
20+ uses : azure/setup-kubectl@v4
21+ with :
22+ version : latest
23+
24+ # Use Azure's helm installation action
25+ - name : Install Helm
26+ uses : azure/setup-helm@v4.3.0
27+ with :
28+ version : latest
29+
30+ # Copy the details of Kubeconfig to enable authentication with the Rancher cluster
31+ - name : Load Kubeconfig
32+ run : | # TODO: I'm unsure what the label and format for the secret containing the kubernetes token is. Will have to ask the Jan on Tuesday.
33+ mkdir -p ~/.kube
34+ echo "${{ secrets.KUBECONFIG }}" > ~/.kube/config
35+
36+ # Run helm upgrade to upgrade deployment
37+ - name : Upgrade Deployment with Helm
38+ run : |
39+ helm upgrade --install meetatmensa ./deployment/k8s -n devoops
You can’t perform that action at this time.
0 commit comments