forked from bellwether/minerva
added dependency for docker and switch gitlab ci/cd to poetry
This commit is contained in:
parent
fe3313d83b
commit
f2354610c2
3 changed files with 64 additions and 53 deletions
|
|
@ -2,6 +2,7 @@ image: python:latest
|
|||
|
||||
run:
|
||||
script:
|
||||
- pip install build twine
|
||||
- python -m build
|
||||
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --skip-existing --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
|
||||
- poetry build
|
||||
- poetry config repositories.gitlab ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
|
||||
- poetry config http-basic.gitlab gitlab-ci-token "$CI_JOB_TOKEN"
|
||||
- poetry publish --repository gitlab
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue