forked from marcelovani/drupalci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_all.sh
executable file
·28 lines (24 loc) · 1.01 KB
/
build_all.sh
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
#!/bin/bash
# Copies all templates and builds the tags
CURRENT_DIR=$(pwd)
source "${CURRENT_DIR}/update.sh"
source "${CURRENT_DIR}/variables.sh"
for drupal_version in "${drupal_versions[@]}"
do
variable_name="drupal_php_matrix$drupal_version"
php_versions=(`echo ${!variable_name} | tr ';' ' '`)
for php_version in "${php_versions[@]}"
do
TAG_PREFIX="${drupal_version}${php_version}"
echo [RUN] Build "drupalci:${drupal_version}${php_version}apache" \
&& clear \
&& cd "${CURRENT_DIR}/${drupal_version}/apache" \
&& docker build -t "dennisdigital/drupalci:${TAG_PREFIX}apache" . --build-arg "DRUPAL_IMAGE=drupal:${TAG_PREFIX}apache" \
&& cd "${CURRENT_DIR}"
echo [RUN] Build "drupalci:${TAG_PREFIX}-apache-interactive" \
&& clear \
&& cd "${CURRENT_DIR}/${drupal_version}/apache-interactive" \
&& docker build -t "dennisdigital/drupalci:${TAG_PREFIX}apache-interactive" . --build-arg "DRUPAL_IMAGE=drupal:${TAG_PREFIX}apache" \
&& cd "${CURRENT_DIR}"
done
done