mijia-sensors/.drone.yml
2022-10-07 12:07:12 +02:00

38 lines
570 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:
- custom_mirror_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.parravidales.es
when:
ref:
- refs/tags/*
image_pull_secrets:
- custom_mirror_registry
trigger:
event:
- tag