ci: add dev deploy job
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c8c7961e1c
commit
1ee3b01f9a
6 changed files with 131 additions and 2 deletions
23
.drone.yml
23
.drone.yml
|
|
@ -37,7 +37,7 @@ steps:
|
|||
commands:
|
||||
- apk add linux-headers cargo
|
||||
- poetry config virtualenvs.in-project 1
|
||||
- poetry install --with linters,test
|
||||
- poetry install --with linters,test,ci
|
||||
- .venv/bin/pre-commit install-hooks
|
||||
depends_on:
|
||||
- restore_cache
|
||||
|
|
@ -58,6 +58,27 @@ steps:
|
|||
depends_on:
|
||||
- install_deps
|
||||
|
||||
- name: deploy-dev
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/poetry:beta
|
||||
commands:
|
||||
- python ci/bump_dev.py
|
||||
- poetry build
|
||||
- poetry config repositories.roboces https://git.roboces.dev/api/packages/catalin/pypi
|
||||
- poetry config http-basic.roboces "$REGISTRY_USERNAME" "$REGISTRY_PASSWORD"
|
||||
- poetry publish --repository roboces
|
||||
environment:
|
||||
REGISTRY_USERNAME:
|
||||
from_secret: REGISTRY_USERNAME
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
when:
|
||||
ref:
|
||||
- main
|
||||
depends_on:
|
||||
- lint
|
||||
- tests
|
||||
|
||||
- name: deploy
|
||||
pull: true
|
||||
image: git.roboces.dev/catalin/poetry:beta
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue