-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 944 Bytes
/
deploy.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
name: Redis CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Helm 3
uses: azure/setup-helm@v1
with:
version: 'v3.0.0-beta.5'
id: install
- name: Deploy to k8s
run: |
echo "$SECRET_CONFIG" > /home/runner/config
/opt/hostedtoolcache/helm/3.0.0-beta.5/x64/linux-amd64/helm repo add stable https://kubernetes-charts.storage.googleapis.com/
/opt/hostedtoolcache/helm/3.0.0-beta.5/x64/linux-amd64/helm repo update
/opt/hostedtoolcache/helm/3.0.0-beta.5/x64/linux-amd64/helm upgrade --atomic --set password=${MY_PASSWORD} -n $NAMESPACE -f values.yaml redis-release stable/redis
env:
KUBECONFIG: /home/runner/config
NAMESPACE: ${{ secrets.KUBE_NAMESPACE }}
SECRET_CONFIG: ${{ secrets.KUBE_CONFIG }}
MY_PASSWORD: ${{ secrets.REDIS_PASSWORD }}