Skip to content

Commit

Permalink
[chore] update README.md (how to configure)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gr1N committed Jan 6, 2020
1 parent 5d9db95 commit 05431a6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,25 @@ steps:
- run: poetry --version
```
### Configure Poetry using environment variables
Poetry can be configured using environment variables and in case of CI/CD it can be a preferred way for you.
A full list of available settings can be found at [official documentation](https://python-poetry.org/docs/configuration/#using-environment-variables).
```yaml
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: Gr1N/setup-poetry@v1
- run: poetry --version
env:
POETRY_VIRTUALENVS_PATH: /path/to/virtualenvs/directory
POETRY_HTTP_BASIC_MY_REPOSITORY_PASSWORD: secret
```
## Contributing
Feel free to submit any PR you want, they are always welcome.
Expand Down

0 comments on commit 05431a6

Please sign in to comment.