forked from tkestack/tke
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 2.26 KB
/
e2e.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
name: e2e
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
VERSION: ${{ github.sha }}
BUILDER: ${{ secrets.BUILDER }}
KUBECONFIG: ${{ secrets.KUBECONFIG }}
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
SECRET_ID: ${{ secrets.SECRET_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
REGION: ${{ secrets.REGION }}
CREATE_INSTANCES_PARAM: ${{ secrets.CREATE_INSTANCES_PARAM }}
PASSWORD: ${{ secrets.PASSWORD }}
NEED_DELETE: ${{ secrets.NEED_DELETE }}
DOCKER_HUB_ACTION_AUTH: ${{ secrets.DOCKER_HUB_ACTION_AUTH }}
INSTANCE_TYPES: ${{ secrets.INSTANCE_TYPES }}
DOCKER_PULL_CONFIG: ${{ secrets.DOCKER_PULL_CONFIG }}
jobs:
image:
name: build tke image
runs-on: self-hosted
if: contains(github.event.head_commit.message, 'installer')
|| contains(github.event.head_commit.message, 'platform')
|| contains(github.event.head_commit.message, 'cluster')
|| contains(github.event.head_commit.message, 'gateway')
|| contains(github.event.head_commit.message, 'addon')
|| contains(github.event.head_commit.message, 'registry')
|| contains(github.event.pull_request.title, 'installer')
|| contains(github.event.pull_request.title, 'platform')
|| contains(github.event.pull_request.title, 'cluster')
|| contains(github.event.pull_request.title, 'gateway')
|| contains(github.event.pull_request.title, 'addon')
|| contains(github.event.pull_request.title, 'registry')
steps:
- name: checkout
uses: actions/checkout@v2
- name: build and push platform image
run: |
make push IMAGES="tke-platform-api tke-platform-controller" VERSION=${{ github.sha }}
platform1:
name: platform test - 1.21.4-tke.1
needs: image
runs-on: self-hosted
env:
K8SVERSION: 1.21.4-tke.1
steps:
- name: printversion
env:
LABELNAME_CONTEXT: ${{ toJson(github.event.pull_request.labels.*.name) }}
run: |
echo "$LABELNAME_CONTEXT"
- name: e2e test
run: |
mkdir -p test/e2e/platform/provider/baremetal/ && cp -r pkg/platform/provider/baremetal/conf test/e2e/platform/provider/baremetal/ && ginkgo -nodes=3 -v test/e2e/platform