2 Star 0 Fork 0

mirrors_rancher/image-build-opni-drain-service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 820 Bytes
一键复制 编辑 原始数据 按行查看 历史
galal-hussein 提交于 2021-05-21 22:27 . remove builddata
SEVERITIES = HIGH,CRITICAL
ifeq ($(ARCH),)
ARCH=$(shell go env GOARCH)
endif
ORG ?= rancher
TAG ?= v0
REPO=opni-drain-service
ifneq ($(DRONE_TAG),)
TAG := $(DRONE_TAG)
endif
.PHONY: image-build
image-build:
git submodule update --init
docker build \
--pull \
--build-arg TAG=$(TAG:$(BUILD_META)=) \
--tag $(ORG)/$(REPO):$(TAG) \
--tag $(ORG)/$(REPO):$(TAG)-$(ARCH) \
.
.PHONY: image-push
image-push:
docker push $(ORG)/$(REPO):$(TAG)-$(ARCH)
.PHONY: image-manifest
image-manifest:
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create --amend \
$(ORG)/$(REPO):$(TAG) \
$(ORG)/$(REPO):$(TAG)-$(ARCH)
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push \
$(ORG)/$(REPO):$(TAG)
.PHONY: image-scan
image-scan:
trivy --severity $(SEVERITIES) --no-progress --ignore-unfixed $(ORG)/$(REPO):$(TAG)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_rancher/image-build-opni-drain-service.git
git@gitee.com:mirrors_rancher/image-build-opni-drain-service.git
mirrors_rancher
image-build-opni-drain-service
image-build-opni-drain-service
main

搜索帮助