This commit is contained in:
parent
4c920b2717
commit
5366d1af93
28
.drone.yml
28
.drone.yml
@ -4,12 +4,12 @@
|
||||
################
|
||||
|
||||
kind: pipeline
|
||||
name: test
|
||||
name: default
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
# Run tests against Python with pytest
|
||||
- name: ci
|
||||
- name: test
|
||||
image: python:3.7.2
|
||||
commands:
|
||||
# Install dependencies
|
||||
@ -23,32 +23,24 @@ steps:
|
||||
- name: poetry_cache
|
||||
path: /root/.cache/pypoetry
|
||||
|
||||
volumes:
|
||||
- name: poetry_cache
|
||||
host:
|
||||
path: /tmp/cache/drone/pypoetry
|
||||
---
|
||||
kind: pipeline
|
||||
name: publish
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: cd
|
||||
- name: publish
|
||||
image: python:3.7.2
|
||||
commands:
|
||||
- git fetch
|
||||
- pip install --no-cache-dir poetry
|
||||
- poetry install
|
||||
# Install dependencies
|
||||
- poetry run semantic-release publish
|
||||
depends_on:
|
||||
- test
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
environment:
|
||||
LOGLEVEL: info
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
|
||||
volumes:
|
||||
- name: poetry_cache
|
||||
path: /root/.cache/pypoetry
|
||||
depends_on:
|
||||
- test
|
||||
volumes:
|
||||
- name: poetry_cache
|
||||
host:
|
||||
|
Loading…
Reference in New Issue
Block a user