-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (45 loc) · 1.58 KB
/
gprofiler-indexer-configmap.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
name: gProfiler Indexer ConfigMap CI
on:
push:
branches:
- master
paths:
- 'src/gprofiler_indexer/conf/meta_replace.yaml'
- 'src/gprofiler_indexer/conf/replace.yaml'
- 'src/gprofiler_indexer/conf/python_elfids_map.json'
- '.github/workflows/gprofiler-indexer-configmap.yaml'
jobs:
configmap-build:
runs-on:
- self-hosted
- granulate-ci-cd
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Build config map
working-directory: ./src/gprofiler_indexer
run: ./build_configmap.sh
deploy:
needs: configmap-build
runs-on:
- self-hosted
- granulate-ci-cd
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Setting kubeconfig for staging
run: aws eks update-kubeconfig --region us-east-1 --name staging-tesseract-cluster
- name: Deploy to EKS staging
working-directory: ./src/gprofiler_indexer
run: kubectl apply --server-side=true -f gprofiler-indexer-configmap.yaml
- name: Setting kubeconfig for prod
run: aws eks update-kubeconfig --region us-east-1 --name tesseract-cluster
- name: Deploy to EKS prod
working-directory: ./src/gprofiler_indexer
run: kubectl apply --server-side=true -f gprofiler-indexer-configmap.yaml
- name: check kubectl
run: kubectl get all