-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (53 loc) · 1.35 KB
/
dev-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
50
51
52
53
54
name: DEV deploy of bkeXtest services
on:
push:
branches:
dev
env:
DBKPI_KUBECONF: ${{ secrets.DBKPI_KUBECONF }}
DBKPD_KUBECONF: ${{ secrets.DBKPD_KUBECONF }}
ROBOT_DEV: ${{ secrets.ROBOT_DEV }}
jobs:
Delete_and_Deploy_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.26.0
-
name: pull kubeconfig
run: |
mkdir secrets
touch secrets/dev-bkpi.yaml
touch secrets/dev-bkpd.yaml
touch secrets/robot-dev.txt
echo "$DBKPI_KUBECONF" > secrets/dev-bkpi.yaml
echo "$DBKPD_KUBECONF" > secrets/dev-bkpd.yaml
echo "$ROBOT_DEV" > secrets/robot-dev.txt
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
-
name: Build
run: make build
-
name: Push
run: make push.dev
-
name: Delete
run: make delete.dev
-
name: Deploy
run: make deploy.dev