1 Star 0 Fork 1

BirenTechnology/k8s-device-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
Windfarer 提交于 2025-03-14 17:17 +08:00 . fix image name
REPO ?= ghcr.io/birentechnology
PROJECT ?= k8s-device-plugin
BUILD_ENV?=
tag=$(shell git describe --abbrev=0 --tags)
VERSION=$(shell git describe --tags --always)
image-build:
docker build --build-arg build_arch=amd64 -t $(REPO)/$(PROJECT):$(VERSION) -f deploy/Dockerfile .
image-build-arm:
docker build --build-arg build_arch=arm64 -t $(REPO)/$(PROJECT):$(VERSION)-arm64 -f deploy/Dockerfile .
push:
docker push $(REPO)/$(PROJECT):$(VERSION)
build:
${BUILD_ENV} GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -ldflags="-X 'main.Version=$(VERSION)' -X 'main.Time=$(shell LC_TIME=en_US.UTF-8 date)' -X 'main.Commit=$(shell git rev-parse --short HEAD)'" -o k8s-device-plugin cmd/manager.go
${BUILD_ENV} GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -ldflags="-X 'main.Version=$(VERSION)' -X 'main.Time=$(shell LC_TIME=en_US.UTF-8 date)' -X 'main.Commit=$(shell git rev-parse --short HEAD)'" -o k8s-device-topo debug/topo/topo.go
build-arm:
${BUILD_ENV} GOOS=linux GOARCH=arm64 CGO_ENABLED=1 go build -ldflags="-X 'main.Version=$(VERSION)' -X 'main.Time=$(shell LC_TIME=en_US.UTF-8 date)' -X 'main.Commit=$(shell git rev-parse --short HEAD)'" -o k8s-device-plugin cmd/manager.go
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/BirenTechnology/k8s-device-plugin.git
git@gitee.com:BirenTechnology/k8s-device-plugin.git
BirenTechnology
k8s-device-plugin
k8s-device-plugin
master

搜索帮助