Skip to content

Commit 796195d

Browse files
authored
Merge pull request #44 from devilbox/release-0.31
Fix wp-cli installation
2 parents d82a529 + 3c17b4d commit 796195d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfiles/work/Dockerfile-5.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ RUN set -x \
222222
# webpack
223223
&& npm install -g webpack webpack-cli \
224224
# wpcli
225-
&& curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp \
225+
&& curl https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar -L -o /usr/local/bin/wp \
226226
&& chmod +x /usr/local/bin/wp \
227227
# yamllint
228228
&& apt update && apt install --no-install-recommends --no-install-suggests -y libpython-dev python-setuptools libyaml-dev \

build/ansible/group_vars/all.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ software_available:
569569
wpcli:
570570
disabled: [5.2]
571571
check: wp --allow-root --version | grep -E '[.0-9]+'
572+
5.3:
573+
command: curl https://github.com/wp-cli/wp-cli/releases/download/v1.5.1/wp-cli-1.5.1.phar -L -o /usr/local/bin/wp
574+
post: chmod +x /usr/local/bin/wp
572575
all:
573576
command: curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -L -o /usr/local/bin/wp
574577
post: chmod +x /usr/local/bin/wp

0 commit comments

Comments
 (0)