2 Star 0 Fork 0

mirrors_rancher/image-build-cilium-image-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
Manuel Buil 提交于 2021-05-20 15:32 . First commit
SEVERITIES = HIGH,CRITICAL
ifeq ($(ARCH),)
ARCH=$(shell go env GOARCH)
endif
BUILD_META=-build$(shell date +%Y%m%d)
ORG ?= rancher
TAG ?= 4c18d06f1d545ed6fde810c2b97935dc8938ddc8$(BUILD_META)
ifneq ($(DRONE_TAG),)
TAG := $(DRONE_TAG)
endif
ifeq (,$(filter %$(BUILD_META),$(TAG)))
$(error TAG needs to end with build metadata: $(BUILD_META))
endif
.PHONY: image-build-%
image-build-%:
name=$(@:image-build-%=%); $${name}/build-$${name}-image.sh ${BUILD_META} ${TAG} ${ARCH} ${ORG}
.PHONY: image-push-%
image-push-%:
name=$(@:image-push-%=%); docker push $(ORG)/hardened-cilium-$${name}:$(TAG)-$(ARCH)
.PHONY: image-manifest-%
image-manifest-%:
name=$(@:image-manifest-%=%); DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create --amend \
$(ORG)/hardened-cilium-$${name}:$(TAG) \
$(ORG)/hardened-cilium-$${name}:$(TAG)-$(ARCH)
name=$(@:image-manifest-%=%); DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push \
$(ORG)/hardened-cilium-$${name}:$(TAG)
.PHONY: image-scan-%
image-scan-%:
name=$(@:image-scan-%=%); trivy --severity $(SEVERITIES) --no-progress --ignore-unfixed $(ORG)/hardened-cilium-$${name}:$(TAG)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_rancher/image-build-cilium-image-tools.git
git@gitee.com:mirrors_rancher/image-build-cilium-image-tools.git
mirrors_rancher
image-build-cilium-image-tools
image-build-cilium-image-tools
main

搜索帮助