-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.22 KB
/
qa-build-deploy.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
name: QA build and deploy of bkeXtest services
on:
push:
branches:
qa
env:
QBKPI_KUBECONF: ${{ secrets.QBKPI_KUBECONF }}
QBKPD_KUBECONF: ${{ secrets.QBKPD_KUBECONF }}
ROBOT_QA: ${{ secrets.ROBOT_QA }}
jobs:
Building_and_Deploying_bkeXtest:
runs-on: [self-hosted, qa-ghrunner]
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Import GPG key
uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
-
name: Get kubectl
uses: azure/setup-kubectl@v3
with:
version: v1.22.0
-
name: pull kubeconfig
run: |
mkdir secrets
touch secrets/qa-bkpi.yaml
touch secrets/qa-bkpd.yaml
touch secrets/robot-qa.txt
echo "$QBKPI_KUBECONF" > secrets/qa-bkpi.yaml
echo "$QBKPD_KUBECONF" > secrets/qa-bkpd.yaml
echo "$ROBOT_QA" > secrets/robot-qa.txt
-
name: Build
run: make build
-
name: Push
run: make push.qa
-
name: Delete
run: make delete.qa
-
name: Deploy
run: make deploy.qa