ci: add dev deploy job
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
cătălin 2022-10-17 17:37:43 +02:00
commit 1ee3b01f9a
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
6 changed files with 131 additions and 2 deletions

View file

@ -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