Skip to content

Commit

Permalink
go mod tidy build build binaries
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Mar 4, 2024
1 parent 8f2a087 commit ecae757
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile.rhtap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.20 AS bui
WORKDIR /go/src/github.com/open-cluster-management.io/managed-serviceaccount
COPY . .
RUN go env
RUN make go-mod-tidy
RUN make build-manager
RUN make build-agent

Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ build-manager:
build-agent:
go build -a -o bin/agent cmd/agent/main.go

go-mod-tidy:
go mod tidy
go mod vendor

build-e2e:
go test -c -o bin/e2e ./e2e/

Expand Down Expand Up @@ -116,7 +120,7 @@ rm -rf $$TMP_DIR ;\
endef

images:
docker build -t ${IMG_REGISTRY}/managed-serviceaccount:${IMAGE_TAG} -f Dockerfile .
docker build -t ${IMG_REGISTRY}/managed-serviceaccount:${IMAGE_TAG} -f Dockerfile.rhtap .

test-integration:
@echo "TODO: Run integration test"
Expand Down

0 comments on commit ecae757

Please sign in to comment.