Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

Commit 01c7c0e

Browse files
committed
Merge branch 'develop'
2 parents f5ff8bb + 366a2c5 commit 01c7c0e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tasks/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111
msg: "Unable to find a `composer.json` file in the root of '{{ ansistrano_release_path.stdout }}'. Make sure your repo has a `composer.json` file in its root or edit `subtree_path` for '{{ site }}' in `wordpress_sites.yml` so it points to the directory with a `composer.json` file."
1212
when: fuel_setup_project and not composer_json.stat.exists
1313

14+
- name: FUEL | Fail if fuel_packagist_token is not set
15+
fail:
16+
msg: "A personal fuel_packagist_token must be set in your `deployment_vars_local.yml` file. Make sure to add single quotes around the token."
17+
when: fuel_packagist_token is undefined or fuel_packagist_token is none or fuel_packagist_token | trim == ''
18+
1419
- name: FUEL | Install Composer dependencies
15-
command: "{{fuel_composer_dest}}/composer.phar install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader"
20+
command: "{{fuel_composer_dest}}/composer.phar install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --auth http-basic.repo.packagist.com token {{fuel_packagist_token}}"
1621
args:
1722
chdir: "{{ ansistrano_release_path.stdout }}"
1823
when: fuel_setup_project
@@ -31,7 +36,7 @@
3136
when: fuel_build_theme
3237

3338
- name: FUEL | Install composer dependencies for theme
34-
command: "{{fuel_composer_dest}}/composer.phar install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader"
39+
command: "{{fuel_composer_dest}}/composer.phar install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --auth http-basic.repo.packagist.com token {{fuel_packagist_token}}"
3540
args:
3641
chdir: "{{ ansistrano_release_path.stdout }}/web/app/themes/{{ fuel_theme_name }}"
3742
when: fuel_build_theme and theme_composer_json.stat.exists and not theme_local_deployment.stat.exists

vars/deployment_vars_local.yml.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ fuel_local_vagrant_provider: your_vm_provider # vmware_fusion / virtualbox / vmw
77
fuel_slack_username: ''
88

99
fuel_use_vm: true
10+
11+
fuel_packagist_token: ''

0 commit comments

Comments
 (0)