forked from aquasecurity/kube-bench
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile-sysdig
25 lines (21 loc) · 1.02 KB
/
makefile-sysdig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This repo is a fork of a public upstream, so Sysdig specific make commands have been added in a separate makefile
ARTIFACTORY := docker.internal.sysdig.com
GAR_DEV_REGISTRY := us-docker.pkg.dev/sysdig-artifact-registry-dev/gar-docker/secure
PROJECT := kube-bench
IMAGE_REPO := $(PROJECT)-dependency
IMAGE_TAG?= dev
DEPENDENCY_IMAGE_NAME := $(ARTIFACTORY)/$(IMAGE_REPO):$(IMAGE_TAG)
DEPENDENCY_IMAGE_NAME_GAR := $(GAR_DEV_REGISTRY)/$(IMAGE_REPO):$(IMAGE_TAG)
ifndef PUSH
PUSH_FLAG := ""
else
PUSH_FLAG := "--push"
endif
build-dependency-image:
docker buildx rm -f $(PROJECT)-builder || true
docker buildx create --name $(PROJECT)-builder --use
docker buildx build --platform linux/arm64,linux/amd64 $(PUSH_FLAG) --tag $(DEPENDENCY_IMAGE_NAME) --file Dependency-Dockerfile .
build-dependency-image-gar:
docker buildx rm -f $(PROJECT)-builder || true
docker buildx create --name $(PROJECT)-builder --use
docker buildx build --platform linux/arm64,linux/amd64 $(PUSH_FLAG) --tag $(DEPENDENCY_IMAGE_NAME_GAR) --file Dependency-Dockerfile .