Skip to content

Commit

Permalink
Merge pull request #54 from le-phare/fix-lephare-gitlab-token
Browse files Browse the repository at this point in the history
Correction Private registry composer "lephare_gitlab_token" et "lephare_packagist_com_token"
  • Loading branch information
pierreboissinot authored Jul 4, 2024
2 parents 16c9d9d + 832261b commit 419b48c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.12.2](https://github.com/le-phare/ansible-deploy/compare/v1.12.1...v1.12.2) (2024-07-04)

### Bug Fixes

* **private registry:** add default value for lephare_gitlab_token and lephare_packagist_com_token ([#54](https://github.com/le-phare/ansible-deploy/pull/54))([b71ddc1](https://github.com/le-phare/ansible-deploy/pull/54/commits/b71ddc15d031f0fe2fafabd0381eebf5c6a42616))


## [1.12.1](https://github.com/le-phare/ansible-deploy/compare/v1.12.0...v1.12.1) (2024-07-03)

### Bug Fixes
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ The defaults vars declared in this module:

lephare_composer_home: '~/.config/composer'

lephare_gitlab_token: ""

lephare_packagist_com_token: ""

lephare_rollbar_notify: true
lephare_rollbar_environment: production

Expand Down
2 changes: 1 addition & 1 deletion config/before_composer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- include_tasks: "../../lephare.ansible-deploy/config/steps/composer/private_registry.yml"
when: lephare_packagist_com_token is defined or lephare_gitlab_token is defined
when: lephare_packagist_com_token != "" or lephare_gitlab_token != ""

- name: Set release environment variable
shell: chdir={{ansistrano_release_path.stdout}}
Expand Down
2 changes: 1 addition & 1 deletion config/steps/composer/private_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
src: composer/auth.json.j2
dest: "{{ lephare_composer_home }}/auth.json"
mode: 0600
when: lephare_packagist_com_token is defined or lephare_gitlab_token is defined
when: lephare_packagist_com_token != "" or lephare_gitlab_token != ""
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ lephare_cachetool_options: ""
lephare_cachetool_retries: 10
lephare_cachetool_delay: 15

lephare_gitlab_token: ""

lephare_packagist_com_token: ""

lephare_rollbar_notify: false

lephare_sentry_notify: false
Expand Down

0 comments on commit 419b48c

Please sign in to comment.