mijia-sensors/.drone.yml

40 lines
609 B
YAML

kind: pipeline
name: build
steps:
- name: Build
image: registry.cuzo.dev/library/python:3
commands:
- pip install -r requirements.txt
# - pytest
image_pull_secrets:
- PRIVATE_DOCKER_REGISTRY
trigger:
event:
- push
---
kind: pipeline
type: docker
name: Create release from tag
steps:
- name: release
image: registry.cuzo.dev/plugins/gitea-release
settings:
api_key:
from_secret: DRONE_API_KEY
base_url: https://git.cuzo.dev
title:
from_secret: DRONE_SEMVER
when:
ref:
- refs/tags/*
image_pull_secrets:
- PRIVATE_DOCKER_REGISTRY
trigger:
event:
- tag