-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
53 lines (40 loc) · 1.16 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2017-2021 Authors of Cilium
# SPDX-License-Identifier: Apache-2.0
REGISTRY ?= quay.io/cilium
WITHOUT_TAG_SUFFIX ?= false
PUSH ?= false
GOBIN = $(shell go env GOPATH)/bin
IMAGINE ?= $(GOBIN)/imagine
OPM ?= $(GOBIN)/opm
ifeq ($(MAKER_CONTAINER),true)
IMAGINE=imagine
endif
images.all: lint
@echo "Current image tags:"
@cat *.tag
images.%.all:
@echo "Current image tags:"
@cat *.tag
include Makefile.releases
lint:
scripts/lint.sh
.buildx_builder:
docker buildx create --platform linux/amd64 > $@
images.operator.v%: .buildx_builder
$(IMAGINE) build \
--builder=$$(cat .buildx_builder) \
--base=./operator/cilium.v$(cilium_version) \
--name=cilium-olm \
--custom-tag-suffix=v$(cilium_version) \
--registry=$(REGISTRY) \
--without-tag-suffix=$(WITHOUT_TAG_SUFFIX) \
--push=$(PUSH)
$(IMAGINE) image \
--base=./operator/cilium.v$(cilium_version) \
--name=cilium-olm \
--custom-tag-suffix=v$(cilium_version) \
--registry=$(REGISTRY) \
--without-tag-suffix=$(WITHOUT_TAG_SUFFIX) \
> image-cilium-olm-v$(cilium_version).tag
generate.configs.v%:
scripts/generate-configs.sh "image-cilium-olm-v$(cilium_version).tag" "$(cilium_version)"