-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 999 Bytes
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
release:
types: [published]
jobs:
build:
name: Releasing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Azure Login
uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Helm tool installer
uses: Azure/setup-helm@v1
- name: Kubectl tool installer
uses: Azure/setup-kubectl@v1
- name: Get Kubeconfig
env: # Or as an environment variable
AKS_CLUSTER_NAME: ${{ secrets.AKS_CLUSTER_NAME }}
AKS_CLUSTER_RG_NAME: ${{ secrets.AKS_CLUSTER_RG_NAME }}
run: |
az aks get-credentials -n $AKS_CLUSTER_NAME -g $AKS_CLUSTER_RG_NAME
kubectl get pods --all-namespaces
- name: Update Charts
run: |
make helm-upgrade-publisher
make helm-upgrade-worker
make helm-upgrade-client
kubectl get pods --all-namespaces
kubectl apply -f charts/ingress/ingress.yaml