File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,27 @@ if ! [[ -f "${PWD}/.dockerignore" ]]; then
14
14
cp " ${PACKAGE} /docker/.dockerignore" " ${PWD} /.dockerignore"
15
15
fi
16
16
17
- TAG=" ${DOCKER_IMAGE_TAG} "
17
+ NGINX_TAG=" ${DOCKER_NGINX_TAG} "
18
+ PHP_TAG=" ${DOCKER_PHP_TAG} "
18
19
19
- if [[ -z " ${TAG} " ]]; then
20
- echo " Environment variable [DOCKER_IMAGE_TAG] not found."
21
- exit 2
20
+ if [[ -z " ${NGINX_TAG} " ]]; then
21
+ echo " Environment variable [DOCKER_NGINX_TAG] not found."
22
+ exit 1
23
+ fi
24
+
25
+ if [[ -z " ${PHP_TAG} " ]]; then
26
+ echo " Environment variable [DOCKER_PHP_TAG] not found."
27
+ exit 1
22
28
fi
23
29
24
- echo " Building [${TAG} :nginx ]"
30
+ echo " Building [${NGINX_TAG} ]"
25
31
docker build \
26
- --tag " ${TAG} :nginx " \
32
+ --tag " ${NGINX_TAG} " \
27
33
--file " ${PACKAGE} /docker/nginx.Dockerfile" \
28
34
" ${PWD} "
29
35
30
- echo " Building [${TAG} :php ]"
36
+ echo " Building [${PHP_TAG} ]"
31
37
docker build \
32
- --tag " ${TAG} :php " \
38
+ --tag " ${PHP_TAG} " \
33
39
--file " ${PACKAGE} /docker/php.Dockerfile" \
34
40
" ${PWD} "
You can’t perform that action at this time.
0 commit comments