Skip to content

Commit

Permalink
Make use of job variable in upstream role
Browse files Browse the repository at this point in the history
Signed-off-by: Gondermann <[email protected]>
  • Loading branch information
gndrmnn committed Sep 25, 2023
1 parent 20f4337 commit 9306e21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions playbooks/publish-pypi-package/post-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
roles:
- upload-pypi
vars:
python_venv_dir: "$HOME/venv"
pypi_twine_executable: "{{ python_venv_dir }}/bin/python -m twine"
pypi_info:
api_token: "{{ secret.PYPI_API_TOKEN }}"
pypi_path: "{{ zuul.project.src_dir }}/dist"
2 changes: 1 addition & 1 deletion roles/prepare-package-build/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# defaults file for prepare-package-build
zuul_work_dir: "{{ zuul.project.src_dir }}"
python_venv_dir: "/tmp/venv"
python_venv_dir: "$HOME/venv"
2 changes: 1 addition & 1 deletion roles/python-package-build/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# defaults file for python-package-build
zuul_work_dir: "{{ zuul.project.src_dir }}"
python_venv_dir: "/tmp/venv"
python_venv_dir: "$HOME/venv"

0 comments on commit 9306e21

Please sign in to comment.