-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (50 loc) · 1.54 KB
/
action.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Github action to create EKS cluster using eksctl and install DOP on it
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Run Shellcheck
uses: bewuethr/shellcheck-action@v2
- name: Install eksctl
run: |
make eksctl-install
- name: Configure AWS credentials
run: |
make configure-credential
env:
ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }}
SECRET_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REGION: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Create EKS cluster
run: |
make create-cluster
env:
VERSION: ${{ secrets.VERSION }}
REGION: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Install kubera on cluster
run: |
make install-kubera
env:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKER_PASSWORD }}
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
KUBERA_BRANCH: ${{ secrets.KUBERA_BRANCH }}
RELEASE: ${{ secrets.RELEASE }}
USE_KUBERA_REPO: ${{ secrets.USE_KUBERA_REPO }}
- name: Apply d-operators based ci to the cluster
run: |
make d-operators
- name: Sanity check for kubera components
run: |
make sanity-check
- name: kubera cleanup
run: |
make kubera-cleanup
- name: Cluster cleanup
run: |
make cluster-cleanup
if: always()