-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
76 lines (58 loc) · 3.48 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
67
68
69
70
71
72
73
74
75
76
DOCKERFILE := Dockerfile.template
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
ROOT_DIR_PATH := $(dir $(MKFILE_PATH))
CONFIG_PATH := ${ROOT_DIR_PATH}config.json
DOCKER_BAKERY_PATH := ${ROOT_DIR_PATH}docker-bakery-binaries/darwin_amd64/docker-bakery
.DEFAULT_GOAL: usage
# tell Makefile not to search files with such names and run tasks unconditionally
.PHONY: usage debug show-structure dump-latest-versions build-patch build-patch-all build-minor build-minor-all build-major build-major-all push-patch push-patch-all push-minor push-minor-all push-major push-major-all
usage:
@echo "Use one of following commands:"
@echo "\tmake show-structure - shows structure of the images"
@echo "\tmake dump-latest-versions - dumps latest versions of the images to json file"
@echo "\tmake build-patch - build next patch version of the image without triggering of dependant build"
@echo "\tmake build-minor - build next minor version of the image without triggering of dependant build"
@echo "\tmake build-major - build next major version of the image without triggering of dependant build"
@echo "\tmake build-patch-all - build next patch version of the image and trigger dependant builds"
@echo "\tmake build-minor-all - build next minor version of the image and trigger dependant builds"
@echo "\tmake build-major-all - build next major version of the image and trigger dependant builds"
@echo "\tmake push-patch - push next patch version of the image without triggering push of dependants"
@echo "\tmake push-minor - push next patch version of the image without triggering push of dependants"
@echo "\tmake push-major - push next patch version of the image without triggering push of dependants"
@echo "\tmake push-patch-all - push next patch version of the image and trigger push of dependants"
@echo "\tmake push-minor-all - push next patch version of the image and trigger push of dependants"
@echo "\tmake push-major-all - push next patch version of the image and trigger push of dependants"
debug:
@echo "Using following configuration:"
@echo "\tMKFILE_PATH: ${MKFILE_PATH}"
@echo "\tROOT_DIR_PATH: ${ROOT_DIR_PATH}"
@echo "\tCONFIG_PATH: ${CONFIG_PATH}"
@echo "\tDOCKER_BAKERY_PATH: ${DOCKER_BAKERY_PATH}"
show-structure:
${DOCKER_BAKERY_PATH} show-structure -c ${CONFIG_PATH}
dump-latest-versions:
${DOCKER_BAKERY_PATH} dump-latest-versions -c ${CONFIG_PATH}
build-patch:
${DOCKER_BAKERY_PATH} build -s patch -c ${CONFIG_PATH} -d ${DOCKERFILE} --skip-dependants
build-patch-all:
${DOCKER_BAKERY_PATH} build -s patch -c ${CONFIG_PATH} -d ${DOCKERFILE}
build-minor:
${DOCKER_BAKERY_PATH} build -s minor -c ${CONFIG_PATH} -d ${DOCKERFILE} --skip-dependants
build-minor-all:
${DOCKER_BAKERY_PATH} build -s minor -c ${CONFIG_PATH} -d ${DOCKERFILE}
build-major:
${DOCKER_BAKERY_PATH} build -s major -c ${CONFIG_PATH} -d ${DOCKERFILE} --skip-dependants
build-major-all:
${DOCKER_BAKERY_PATH} build -s major -c ${CONFIG_PATH} -d ${DOCKERFILE}
push-patch:
${DOCKER_BAKERY_PATH} push -s patch -c ${CONFIG_PATH} -d ${DOCKERFILE} --skip-dependants
push-patch-all:
${DOCKER_BAKERY_PATH} push -s patch -c ${CONFIG_PATH} -d ${DOCKERFILE}
push-minor:
${DOCKER_BAKERY_PATH} push -s minor -c ${CONFIG_PATH} -d ${DOCKERFILE} --skip-dependants
push-minor-all:
${DOCKER_BAKERY_PATH} push -s minor -c ${CONFIG_PATH} -d ${DOCKERFILE}
push-major:
${DOCKER_BAKERY_PATH} push -s major -c ${CONFIG_PATH} -d ${DOCKERFILE} --skip-dependants
push-major-all:
${DOCKER_BAKERY_PATH} push -s major -c ${CONFIG_PATH} -d ${DOCKERFILE}