Skip to content

Commit a2c28db

Browse files
committed
Don't rebuild docker images on every kind-e2e run
1 parent 1152f81 commit a2c28db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
docker tag gcr.io/k8s-staging-kas-network-proxy/proxy-server:master gcr.io/k8s-staging-kas-network-proxy/proxy-server-amd64:master
9595
docker tag gcr.io/k8s-staging-kas-network-proxy/proxy-agent:master gcr.io/k8s-staging-kas-network-proxy/proxy-agent-amd64:master
9696
- name: Run e2e tests
97-
run: make test-e2e
97+
run: make test-e2e-ci
9898
e2e:
9999
name: e2e
100100
runs-on: ubuntu-20.04

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ test-integration: build
8787
test-e2e: docker-build
8888
go test -mod=vendor ./e2e -race -agent-image ${AGENT_FULL_IMAGE}-$(TARGETARCH):${TAG} -server-image ${SERVER_FULL_IMAGE}-$(TARGETARCH):${TAG} -kind-image ${KIND_IMAGE} -mode ${CONNECTION_MODE}
8989

90+
# e2e test runner for continuous integration that does not build a new image.
91+
.PHONY: test-e2e-ci
92+
test-e2e:
93+
go test -mod=vendor ./e2e -race -agent-image ${AGENT_FULL_IMAGE}-$(TARGETARCH):${TAG} -server-image ${SERVER_FULL_IMAGE}-$(TARGETARCH):${TAG} -kind-image ${KIND_IMAGE} -mode ${CONNECTION_MODE}
94+
9095
## --------------------------------------
9196
## Binaries
9297
## --------------------------------------

0 commit comments

Comments
 (0)