@@ -35,97 +35,20 @@ concurrency:
3535jobs :
3636 prepare :
3737 name : Prepare
38- runs-on : buildjet-2vcpu-ubuntu-1804
38+ runs-on : buildjet-2vcpu-ubuntu-2004
3939 steps :
40- - name : Checkout
41- uses : actions/checkout@v2
42-
4340 - name : Setup Go Env
4441 id : go
4542 uses : actions/setup-go@v4
4643 with :
4744 go-version : " 1.23"
48-
49- - name : Install kind
50- run : |
51- go install sigs.k8s.io/[email protected] 52-
53- - name : Install Helm
54- run : |
55- curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
56- chmod 700 get_helm.sh
57- ./get_helm.sh
58-
59- e2e-test :
60- needs :
61- - prepare
62- runs-on : buildjet-2vcpu-ubuntu-1804
63- steps :
64- - name : Checkout
65- uses : actions/checkout@v4
66- with :
67- submodules : recursive
68-
69- - name : Setup Go Env
70- uses : actions/setup-go@v4
71- with :
72- go-version : " 1.23"
73-
74- - name : Login to Registry
75- uses : docker/login-action@v1
76- with :
77- registry : ${{ secrets.DOCKER_REGISTRY }}
78- username : ${{ secrets.DOCKER_USERNAME }}
79- password : ${{ secrets.DOCKER_PASSWORD }}
80-
81- - name : Login to Private Registry
82- uses : docker/login-action@v1
83- with :
84- registry : hkccr.ccs.tencentyun.com
85- username : ${{ secrets.PRIVATE_DOCKER_USERNAME }}
86- password : ${{ secrets.PRIVATE_DOCKER_PASSWORD }}
87-
88- - name : Build images
89- env :
90- TAG : dev
91- ARCH : amd64
92- ENABLE_PROXY : " false"
93- BASE_IMAGE_TAG : " debug"
94- run : |
95- echo "building images..."
96- make build-image
97-
98- - name : Extract adc binary
99- run : |
100- echo "Extracting adc binary..."
101- docker create --name adc-temp api7/api7-ingress-controller:dev
102- docker cp adc-temp:/bin/adc /usr/local/bin/adc
103- docker rm adc-temp
104- chmod +x /usr/local/bin/adc
105- echo "ADC binary extracted to /usr/local/bin/adc"
106-
107- - name : Launch Kind Cluster
108- env :
109- KIND_NODE_IMAGE : kindest/node:v1.18.20@sha256:38a8726ece5d7867fb0ede63d718d27ce2d41af519ce68be5ae7fcca563537ed
45+
46+ - name : System Information
11047 run : |
111- make kind-up
48+ uname -a
49+ lsb_release -a
50+ docker info
11251
113- - name : Install Gateway API And CRDs
114- run : |
115- make install
116-
117- - name : Download API7EE3 Chart
118- run : |
119- make download-api7ee3-chart
120-
121- - name : Loading Docker Image to Kind Cluster
122- run : |
123- make kind-load-images
124-
125- - name : Run E2E test suite
126- shell : bash
127- env :
128- API7_EE_LICENSE : ${{ secrets.API7_EE_LICENSE }}
129- PROVIDER_TYPE : api7ee
52+ - name : Install kind
13053 run : |
131- make e2e-test
54+ go install sigs.k8s.io/[email protected]
0 commit comments