3 Star 1 Fork 0

mirrors_AliyunContainerService/kube-eventer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Shichun Feng 提交于 2023-08-30 11:33 . Release/1.2.9 (#278)
all: build
PREFIX?=registry.aliyuncs.com/acs
FLAGS=
ARCH?=amd64
ALL_ARCHITECTURES=amd64 arm arm64 ppc64le s390x
ML_PLATFORMS=linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x
VERSION?=v1.2.0
GIT_COMMIT:=$(shell git rev-parse --short HEAD)
KUBE_EVENTER_LDFLAGS=-w -X github.com/AliyunContainerService/kube-eventer/version.Version=$(VERSION) -X github.com/AliyunContainerService/kube-eventer/version.GitCommit=$(GIT_COMMIT)
fmt:
find . -type f -name "*.go" | grep -v "./vendor*" | xargs gofmt -s -w
build: clean
go mod tidy & go mod vendor
GOARCH=$(ARCH) CGO_ENABLED=0 go build -ldflags "$(KUBE_EVENTER_LDFLAGS)" -o kube-eventer github.com/AliyunContainerService/kube-eventer
sanitize:
hack/check_gofmt.sh
hack/run_vet.sh
test-unit: clean sanitize build
ifeq ($(ARCH),amd64)
GOARCH=$(ARCH) go test --test.short -race ./... $(FLAGS)
else
GOARCH=$(ARCH) go test --test.short ./... $(FLAGS)
endif
test-unit-cov: clean sanitize build
hack/coverage.sh
docker-container:
docker build --pull -t $(PREFIX)/kube-eventer-$(ARCH):$(VERSION)-$(GIT_COMMIT)-aliyun -f deploy/Dockerfile .
clean:
rm -f kube-eventer
.PHONY: all build sanitize test-unit test-unit-cov docker-container clean fmt
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_AliyunContainerService/kube-eventer.git
git@gitee.com:mirrors_AliyunContainerService/kube-eventer.git
mirrors_AliyunContainerService
kube-eventer
kube-eventer
master

搜索帮助