-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 863 Bytes
/
k8s.yaml
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
32
name: Deployment to Kubernetes cluster
on:
push:
branches:
- master
paths:
- k8s/common/**
- k8s/production/**
jobs:
deploy:
name: Deploy configs to the cluster
runs-on: ubuntu-latest
steps:
- name: Checkout to branch
uses: actions/checkout@v2
- name: Set K8S context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.PROVIDER_KUBECONFIG_CONTENTS }}
context: ${{ secrets.PROVIDER_KUBECONFIG_CONTEXT }}
- name: Setup Ingress controller
run: kubectl apply -f ${{ secrets.PROVIDER_INGRESS_MANIFEST }}
- name: Apply the manifests
uses: azure/k8s-deploy@v1
with:
manifests: |
k8s/production/volumes.yaml
k8s/common/*
k8s/production/networks.yaml