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

Commit

Permalink
Adds username for packagist.com
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyzahner committed Jun 27, 2017
1 parent 01c7c0e commit 62eeedc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@
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."
when: fuel_packagist_token is undefined or fuel_packagist_token is none or fuel_packagist_token | trim == ''

- name: FUEL | Fail if fuel_packagist_username is not set
fail:
msg: "A personal fuel_packagist_username must be set in your `deployment_vars_local.yml` file. Make sure to add single quotes around the token."
when: fuel_packagist_username is undefined or fuel_packagist_username is none or fuel_packagist_username | trim == ''


- name: FUEL | Install Composer dependencies
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}}"
command: "{{fuel_composer_dest}}/composer.phar install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --auth http-basic.repo.packagist.com {{fuel_packagist_username}} {{fuel_packagist_token}}"
args:
chdir: "{{ ansistrano_release_path.stdout }}"
when: fuel_setup_project
Expand All @@ -36,7 +42,7 @@
when: fuel_build_theme

- name: FUEL | Install composer dependencies for theme
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}}"
command: "{{fuel_composer_dest}}/composer.phar install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --auth http-basic.repo.packagist.com {{fuel_packagist_username}} {{fuel_packagist_token}}"
args:
chdir: "{{ ansistrano_release_path.stdout }}/web/app/themes/{{ fuel_theme_name }}"
when: fuel_build_theme and theme_composer_json.stat.exists and not theme_local_deployment.stat.exists
Expand Down
1 change: 1 addition & 0 deletions vars/deployment_vars_local.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fuel_slack_username: ''

fuel_use_vm: true

fuel_packagist_username: ''
fuel_packagist_token: ''

0 comments on commit 62eeedc

Please sign in to comment.