forked from rfay/ddev-php-patch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.yaml
More file actions
27 lines (22 loc) · 828 Bytes
/
Copy pathinstall.yaml
File metadata and controls
27 lines (22 loc) · 828 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
26
27
name: php-patch-build
ddev_version_constraint: '>= v1.23.5'
project_files:
- config.php-patch-build.yaml
- web-build/Dockerfile.php-patch-build
post_install_actions:
- |
#ddev-nodisplay
if [ "${STATIC_PHP_VERSION:-}" = "" ]; then
printf "\n\nPlease enter the PHP patch version you want to use, like 7.4.23 or 8.0.10: "
fi
- |
#ddev-nodisplay
#ddev-description:Set PHP patch version
if [ "${STATIC_PHP_VERSION:-}" = "" ]; then
read STATIC_PHP_VERSION
echo "STATIC_PHP_VERSION=\"${STATIC_PHP_VERSION}\"" > .env.php-patch-build
fi
echo "STATIC_PHP_VERSION=${STATIC_PHP_VERSION}"
echo "ENV STATIC_PHP_VERSION=${STATIC_PHP_VERSION}" > web-build/pre.Dockerfile.php-patch-build
removal_actions:
- rm -f ${DDEV_APPROOT}/.ddev/web-build/pre.Dockerfile.php-patch-build