-
-
Notifications
You must be signed in to change notification settings - Fork 228
54 lines (46 loc) · 1.48 KB
/
e2e.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: E2E
on:
pull_request:
branches:
- master
push:
branches:
- master
env:
ImageName: redis-operator
ImageTag: test
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
config: "./kind-config.yaml"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build multi-arch image
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/arm64,linux/amd64
push: false
tags: ${{ env.ImageName }}:${{ env.ImageTag }}
- name: deploy redis-operator to cluster
uses: wahyd4/kubectl-helm-action@master
with:
args: |
helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/
helm repo update
helm install --create-namespace --namespace=ot-container redis-operator ot-helm/redis-operator \
--set redisOperator.imageName=${{ env.ImageName }} --set redisOperator.imageTag=${{ env.ImageTag }} \
--set redisOperator.imagePullPolicy=Never
- name: Install kuttl
run: |
curl -L https://github.com/kudobuilder/kuttl/releases/download/v0.15.0/kubectl-kuttl_0.15.0_linux_x86_64 -o /usr/local/bin/kuttl
chmod +x /usr/local/bin/kuttl
- name: Run e2e test
run: |
kuttl test