Skip to content

Commit

Permalink
Build e2e binary separately
Browse files Browse the repository at this point in the history
  • Loading branch information
elgnay committed Sep 16, 2020
1 parent 5adc962 commit c39326e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM docker.io/openshift/origin-release:golang-1.14 AS builder
WORKDIR /go/src/github.com/open-cluster-management/work
COPY . .
ENV GO_PACKAGE github.com/open-cluster-management/work

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/work/work /
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ else
$(info Using existing kustomize from "$(KUSTOMIZE)")
endif

build: build-e2e

build-e2e:
go test -c ./test/e2e -mod=vendor

Expand Down

0 comments on commit c39326e

Please sign in to comment.