-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 722 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (21 loc) · 722 Bytes
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
ifeq (${lang},php)
depManager = composer
endif
i := $(subst ${null} ${null},-,$(sort ${installs}))
tag = ${version}-${os}${osVersion}-${depManager}${depManagerVersion}-${i}
image = fefas/stack-ready/${lang}:${tag}
login:
@docker login ${registry} -u ${username} -p ${password}
publish:
@docker tag ${image} ${registry}/${image}
@docker push ${registry}/${image}
build: buildArgs = VERSION=${version} DEP_MANAGER_VERSION=${depManagerVersion}
build: buildArgs += OS=${os} OS_VERSION=${osVersion} INSTALLS="${i}"
build: dockerfile := -f ${lang}.Dockerfile
build:
@docker build \
--no-cache \
-f ${lang}.Dockerfile \
-t ${image} \
$(addprefix --build-arg ,$(buildArgs)) \
.