-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (50 loc) · 1.25 KB
/
development_dynamic_enviroment.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
62
63
64
65
name: Development Dynamic Enviroment
on:
push:
branches: ["development"]
pull_request:
branches: ["development"]
jobs:
checkout:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
install:
runs-on: self-hosted
needs: ["checkout"]
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
fmt:
runs-on: self-hosted
needs: ["install"]
steps:
- run: npm run fmt.check
lint:
runs-on: self-hosted
needs: ["install"]
steps:
- run: npm run lint
build:
runs-on: self-hosted
needs: ["install", "fmt", "lint"]
steps:
- run: npm run build
kubeconfig:
runs-on: self-hosted
needs: ["build"]
steps:
- name: Create kubeconfig
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
run: |
mkdir -p $GITHUB_WORKSPACE/.kube
echo "$KUBE_CONFIG" | base64 --decode > $GITHUB_WORKSPACE/.kube/config
deploy:
runs-on: self-hosted
needs: ["kubeconfig"]
steps:
- name: Deploy to kubernetes
run: skaffold run --kubeconfig "$GITHUB_WORKSPACE/.kube/config" --filename "$GITHUB_WORKSPACE/dev-skaffold.yaml" --default-repo registry.internal.visoft.solutions