-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (33 loc) · 1.3 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
AUTHOR ?= sparkfabrik
IMAGE_NAME ?= docker-alpine-aws-cli
PLATFORM ?= "linux/amd64"
LATEST_VERSION ?= 2.22.18-alpine3.20
build: build-2.22.18-3.20
# To keep the number of builds low, we only keep the latest two versions of the AWS CLI
build-2.22.18-3.20: AWS_CLI_VERSION="2.22.18"
build-2.22.18-3.20: PYTHON_VERSION="3.11.9"
build-2.22.18-3.20: ALPINE_VERSION="3.20"
build-2.22.18-3.20: build-template
build-2.22.18-3.19: AWS_CLI_VERSION="2.22.18"
build-2.22.18-3.19: PYTHON_VERSION="3.11.9"
build-2.22.18-3.19: ALPINE_VERSION="3.19"
build-2.22.18-3.19: build-template
build-2.17.44-3.20: AWS_CLI_VERSION="2.17.44"
build-2.17.44-3.20: PYTHON_VERSION="3.11.9"
build-2.17.44-3.20: ALPINE_VERSION="3.20"
build-2.17.44-3.20: build-template
build-2.17.44-3.19: AWS_CLI_VERSION="2.17.44"
build-2.17.44-3.19: PYTHON_VERSION="3.11.9"
build-2.17.44-3.19: ALPINE_VERSION="3.19"
build-2.17.44-3.19: build-template
build-template:
docker buildx build --load . \
--platform "$(PLATFORM)" \
--build-arg AUTHOR=$(AUTHOR) \
--build-arg IMAGE_NAME=$(IMAGE_NAME) \
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
--build-arg ALPINE_VERSION=$(ALPINE_VERSION) \
--build-arg AWS_CLI_VERSION=$(AWS_CLI_VERSION) \
-t $(AUTHOR)/$(IMAGE_NAME):$(AWS_CLI_VERSION)-alpine$(ALPINE_VERSION)
print-latest-image-tag:
@echo $(LATEST_VERSION)