mijia-sensors/.drone.yml
parra 022f9df89a
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
Removed trigger filter in build pipeline
2022-10-07 12:07:12 +02:00

39 lines
593 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:
exclude:
- pull_request
---
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