-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
66 lines (58 loc) · 2.13 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
54
55
56
57
58
59
60
61
62
63
64
65
66
.DEFAULT_GOAL := images
DOCKER_IMAGE ?= cr.yandex/yc/fluent-bit-plugin-yandex
PLUGIN_VERSION ?= dev
FLUENT_BIT_1_8?=1.8.15
FLUENT_BIT_1_9?=1.9.10
FLUENT_BIT_2_0?=2.0.11
FLUENT_BIT_2_1?=2.1.7
FLUENT_BIT_2_2?=2.2.2
FLUENT_BIT_3_0?=3.0.0
push-images:
docker push $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_1_8)
docker push $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_1_9)
docker push $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_2_0)
docker push $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_2_1)
docker push $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_2_2)
docker push $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_3_0)
images: #mod.vendor
docker build \
--platform linux/amd64 \
--build-arg plugin_version=$(PLUGIN_VERSION) \
--build-arg fluent_bit_version=$(FLUENT_BIT_1_8) \
-t $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_1_8) .
docker build \
--platform linux/amd64 \
--build-arg plugin_version=$(PLUGIN_VERSION) \
--build-arg fluent_bit_version=$(FLUENT_BIT_1_9) \
-t $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_1_9) .
docker build \
--platform linux/amd64 \
--build-arg plugin_version=$(PLUGIN_VERSION) \
--build-arg fluent_bit_version=$(FLUENT_BIT_2_0) \
-t $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_2_0) .
docker build \
--platform linux/amd64 \
--build-arg plugin_version=$(PLUGIN_VERSION) \
--build-arg fluent_bit_version=$(FLUENT_BIT_2_1) \
-t $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_2_1) .
docker build \
--platform linux/amd64 \
--build-arg plugin_version=$(PLUGIN_VERSION) \
--build-arg fluent_bit_version=$(FLUENT_BIT_2_2) \
-t $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_2_2) .
docker build \
--platform linux/amd64 \
--build-arg plugin_version=$(PLUGIN_VERSION) \
--build-arg fluent_bit_version=$(FLUENT_BIT_3_0) \
-t $(DOCKER_IMAGE):$(PLUGIN_VERSION)-fluent-bit-$(FLUENT_BIT_3_0) .
precommit: mod.tidy fmt vet lint
vet:
go vet ./...
lint:
golangci-lint run ./...
fmt:
gofumpt -w .
mod.vendor: mod.tidy
go mod vendor
mod.tidy:
go mod tidy