Build e2e binary separately

This commit is contained in:
Yang Le
2020-09-16 10:49:48 +08:00
parent ce8a848e7f
commit 54dfe6529d
2 changed files with 1 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ COPY . .
ENV GO_PACKAGE github.com/open-cluster-management/registration
RUN make build --warn-undefined-variables
RUN make build-e2e --warn-undefined-variables
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
COPY --from=builder /go/src/github.com/open-cluster-management/registration/registration /

View File

@@ -70,8 +70,6 @@ deploy-spoke: ensure-kustomize
deploy-all: deploy-hub deploy-webhook bootstrap-secret deploy-spoke
build: build-e2e
build-e2e:
go test -c ./test/e2e -mod=vendor