timetracker/.drone.yml

28 lines
492 B
YAML
Raw Normal View History

2023-01-02 17:35:05 +00:00
---
kind: pipeline
type: docker
2023-01-05 10:52:50 +00:00
name: default
2023-01-02 17:35:05 +00:00
steps:
2023-01-05 10:52:50 +00:00
- name: test
image: python:3.10
commands:
2023-01-05 11:05:16 +00:00
- VIRTUAL_ENV=/opt/venv
- "python3 -m venv pip $VIRTUAL_ENV"
- PATH="$VIRTUAL_ENV/bin:$PATH"
- python -m pip install poetry
- poetry install
- poetry env info
- pytest
2023-01-02 17:35:05 +00:00
- name: build container
image: plugins/docker
settings:
2023-01-02 17:37:59 +00:00
repo: registry.kucharczyk.xyz/timetracker
2023-01-03 20:35:09 +00:00
tags:
- latest
2023-01-02 17:35:05 +00:00
trigger:
event:
- push
- cron
exclude:
- pull_request