-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
48 lines (35 loc) · 1.69 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
KEDA_TOOLS_GO_VERSION = 1.23.4
K6_VERSION = v0.47.0
IMAGE_REGISTRY ?= ghcr.io
IMAGE_REPO ?= kedacore
IMAGE_KEDA_TOOLS ?= $(IMAGE_REGISTRY)/$(IMAGE_REPO)/keda-tools:$(KEDA_TOOLS_GO_VERSION)
IMAGE_KEDA_K6_RUNNER ?= $(IMAGE_REGISTRY)/$(IMAGE_REPO)/keda-k6-runner
BUILD_PLATFORMS ?= linux/amd64,linux/arm64
IMAGE_TAG := $(shell git describe --always --abbrev=7)
##################################################
# e2e tests images #
##################################################
e2e-images: build-e2e-images push-e2e-images
build-e2e-images:
IMAGE_TAG=$(IMAGE_TAG) ./e2e/images/build.sh
push-e2e-images:
IMAGE_TAG=$(IMAGE_TAG) ./e2e/images/build.sh --push
##################################################
# tools image #
##################################################
build-keda-tools:
docker build -f tools/Dockerfile -t $(IMAGE_KEDA_TOOLS) --build-arg GO_VERSION=$(KEDA_TOOLS_GO_VERSION) .
push-keda-tools:
docker buildx build --push --platform=${BUILD_PLATFORMS} -f tools/Dockerfile -t ${IMAGE_KEDA_TOOLS} --build-arg GO_VERSION=$(KEDA_TOOLS_GO_VERSION) .
##################################################
# k6-runner image #
##################################################
build-keda-k6-runner:
docker build -f k6-runner/Dockerfile -t ${IMAGE_KEDA_K6_RUNNER}:$(K6_VERSION) --build-arg K6_VERSION=$(K6_VERSION) .
push-keda-k6-runner:
docker buildx build --push --platform=${BUILD_PLATFORMS} \
-f k6-runner/Dockerfile \
-t ${IMAGE_KEDA_K6_RUNNER}:latest \
-t ${IMAGE_KEDA_K6_RUNNER}:$(K6_VERSION) \
-t ${IMAGE_KEDA_K6_RUNNER}:$(K6_VERSION)-$(IMAGE_TAG) \
--build-arg K6_VERSION=$(K6_VERSION) .