From 05431a6590e8a19831bac713791315f4f4cca4a5 Mon Sep 17 00:00:00 2001 From: Nikita Grishko Date: Mon, 6 Jan 2020 15:14:44 +0300 Subject: [PATCH] [chore] update README.md (how to configure) --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index e350839..db05a39 100644 --- a/README.md +++ b/README.md @@ -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.