prepare for cli updates with custom php binary
This commit is contained in:
@@ -22,27 +22,24 @@
|
|||||||
register: env_file
|
register: env_file
|
||||||
|
|
||||||
- name: Download and installs all libs and dependencies
|
- name: Download and installs all libs and dependencies
|
||||||
|
block:
|
||||||
|
- name: Composer install
|
||||||
community.general.composer:
|
community.general.composer:
|
||||||
command: install
|
command: install
|
||||||
arguments: --no-dev --optimize-autoloader
|
arguments: --no-dev --optimize-autoloader
|
||||||
working_dir: "{{ prod_base_dir }}"
|
working_dir: "{{ prod_base_dir }}"
|
||||||
php_path: /usr/bin/keyhelp-php84
|
php_path: /usr/bin/keyhelp-php84
|
||||||
register: composer_install
|
rescue:
|
||||||
|
- name: Debug package discovery
|
||||||
- name: Debug package discovery when composer install fails
|
|
||||||
shell: |
|
shell: |
|
||||||
set -o pipefail
|
|
||||||
keyhelp-php84 artisan package:discover -v --ansi 2>&1 | tail -n 200
|
keyhelp-php84 artisan package:discover -v --ansi 2>&1 | tail -n 200
|
||||||
args:
|
args:
|
||||||
chdir: "{{ prod_base_dir }}"
|
chdir: "{{ prod_base_dir }}"
|
||||||
register: package_discover_debug
|
register: package_discover_debug
|
||||||
ignore_errors: true
|
- debug:
|
||||||
when: composer_install is failed
|
|
||||||
|
|
||||||
- name: Show package discovery debug output
|
|
||||||
debug:
|
|
||||||
var: package_discover_debug.stdout_lines
|
var: package_discover_debug.stdout_lines
|
||||||
when: composer_install is failed
|
- fail:
|
||||||
|
msg: "Composer install failed; see package:discover output above."
|
||||||
|
|
||||||
- name: Install node_modules
|
- name: Install node_modules
|
||||||
npm:
|
npm:
|
||||||
|
|||||||
@@ -98,5 +98,5 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"version": "26.0.2",
|
"version": "26.0.2",
|
||||||
"build": "60"
|
"build": "65"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user