File tree Expand file tree Collapse file tree 5 files changed +25
-39
lines changed Expand file tree Collapse file tree 5 files changed +25
-39
lines changed Original file line number Diff line number Diff line change 8888
8989 - name : Loading Docker Image to Kind Cluster
9090 run : |
91- make kind-load-images
91+ make kind-load-adc-image
92+ make kind-load-ingress-image
9293
9394 - name : Install Gateway API And CRDs
9495 run : |
Original file line number Diff line number Diff line change @@ -30,15 +30,16 @@ concurrency:
3030 cancel-in-progress : true
3131
3232jobs :
33- prepare :
34- name : Prepare
33+ conformance-test :
34+ timeout-minutes : 60
3535 runs-on : ubuntu-latest
3636 steps :
3737 - name : Checkout
3838 uses : actions/checkout@v4
39+ with :
40+ submodules : recursive
3941
4042 - name : Setup Go Env
41- id : go
4243 uses : actions/setup-go@v4
4344 with :
4445 go-version : " 1.23"
5354 chmod 700 get_helm.sh
5455 ./get_helm.sh
5556
56- conformance-test :
57- timeout-minutes : 60
58- needs :
59- - prepare
60- runs-on : ubuntu-latest
61- steps :
62- - name : Checkout
63- uses : actions/checkout@v4
64- with :
65- submodules : recursive
66-
67- - name : Setup Go Env
68- uses : actions/setup-go@v4
69- with :
70- go-version : " 1.23"
7157 - name : Login to Registry
7258 uses : docker/login-action@v3
7359 with :
Original file line number Diff line number Diff line change 8686 echo "building images..."
8787 make build-image
8888
89- - name : Extract adc binary
90- run : |
91- echo "Extracting adc binary..."
92- docker create --name adc-temp api7/api7-ingress-controller:dev
93- docker cp adc-temp:/bin/adc /usr/local/bin/adc
94- docker rm adc-temp
95- chmod +x /usr/local/bin/adc
96- echo "ADC binary extracted to /usr/local/bin/adc"
97-
9889 - name : Install v2 CRDs
9990 run : |
10091 make install-crds-nocel
@@ -107,6 +98,15 @@ jobs:
10798 run : |
10899 make kind-load-images
109100
101+ - name : Extract adc binary
102+ if : ${{ env.ADC_VERSION == 'dev' }}
103+ run : |
104+ docker create --name adc-temp ghcr.io/api7/adc:dev
105+ docker cp adc-temp:main.js adc.js
106+ docker rm adc-temp
107+ node $(pwd)/adc.js -v
108+ echo "ADC_BIN=node $(pwd)/adc.js" >> $GITHUB_ENV
109+
110110 - name : Run E2E test suite
111111 shell : bash
112112 env :
Original file line number Diff line number Diff line change 8181 echo "building images..."
8282 make build-image
8383
84- - name : Extract adc binary
85- run : |
86- echo "Extracting adc binary..."
87- docker create --name adc-temp api7/api7-ingress-controller:dev
88- docker cp adc-temp:/bin/adc /usr/local/bin/adc
89- docker rm adc-temp
90- chmod +x /usr/local/bin/adc
91- echo "ADC binary extracted to /usr/local/bin/adc"
92-
9384 - name : Launch Kind Cluster
9485 run : |
9586 make kind-up
@@ -106,6 +97,15 @@ jobs:
10697 run : |
10798 make kind-load-images
10899
100+ - name : Extract adc binary
101+ if : ${{ env.ADC_VERSION == 'dev' }}
102+ run : |
103+ docker create --name adc-temp ghcr.io/api7/adc:dev
104+ docker cp adc-temp:main.js adc.js
105+ docker rm adc-temp
106+ node $(pwd)/adc.js -v
107+ echo "ADC_BIN=node $(pwd)/adc.js" >> $GITHUB_ENV
108+
109109 - name : Run E2E test suite
110110 shell : bash
111111 env :
Original file line number Diff line number Diff line change @@ -184,13 +184,12 @@ kind-down:
184184 || echo " kind cluster does not exist"
185185
186186.PHONY : kind-load-images
187- kind-load-images : pull-infra-images kind-load-ingress-image
187+ kind-load-images : pull-infra-images kind-load-ingress-image kind-load-adc-image
188188 @kind load docker-image hkccr.ccs.tencentyun.com/api7-dev/api7-ee-3-gateway:dev --name $(KIND_NAME )
189189 @kind load docker-image hkccr.ccs.tencentyun.com/api7-dev/api7-ee-dp-manager:$(DASHBOARD_VERSION ) --name $(KIND_NAME )
190190 @kind load docker-image hkccr.ccs.tencentyun.com/api7-dev/api7-ee-3-integrated:$(DASHBOARD_VERSION ) --name $(KIND_NAME )
191191 @kind load docker-image kennethreitz/httpbin:latest --name $(KIND_NAME )
192192 @kind load docker-image jmalloc/echo-server:latest --name $(KIND_NAME )
193- @kind load docker-image ghcr.io/api7/adc:dev --name $(KIND_NAME )
194193 @kind load docker-image apache/apisix:dev --name $(KIND_NAME )
195194
196195.PHONY : kind-load-gateway-image
You can’t perform that action at this time.
0 commit comments