This commit is contained in:
parent
e77f1a41c3
commit
6c3babace3
52
.drone.yml
52
.drone.yml
@ -1,26 +1,28 @@
|
|||||||
# Generic Home Assistant template
|
kind: pipeline
|
||||||
.ha: &ha
|
type: docker
|
||||||
stage: homeassistant
|
name: default
|
||||||
variables:
|
|
||||||
PYTHONPATH: "/usr/src/app:$PYTHONPATH"
|
|
||||||
before_script:
|
|
||||||
- python -m homeassistant --version
|
|
||||||
- mv fake_secrets.yaml secrets.yaml
|
|
||||||
# remove files which fail CI checks due to HACS installed addons
|
|
||||||
- rm packages/network_map.yaml
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
python -m homeassistant \
|
|
||||||
--config $CI_PROJECT_DIR \
|
|
||||||
--script check_config \
|
|
||||||
--info all
|
|
||||||
tags:
|
|
||||||
- hass
|
|
||||||
|
|
||||||
# Home Assistant test jobs
|
steps:
|
||||||
ha-latest:
|
- name: jekyll
|
||||||
<<: *ha
|
pull: always
|
||||||
image:
|
image: ghcr.io/home-assistant/home-assistant:stable
|
||||||
name: homeassistant/home-assistant:latest
|
|
||||||
entrypoint: [""]
|
- name: discord
|
||||||
needs: []
|
pull: always
|
||||||
|
image: appleboy/drone-discord:1
|
||||||
|
avatar_url: "https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png"
|
||||||
|
environment:
|
||||||
|
DISCORD_WEBHOOK_ID:
|
||||||
|
from_secret: discord_webhook_id
|
||||||
|
DISCORD_WEBHOOK_TOKEN:
|
||||||
|
from_secret: discord_webhook_token
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
- pull_request
|
||||||
|
- deployment
|
||||||
|
status:
|
||||||
|
- changed
|
||||||
|
- failure
|
||||||
|
- success
|
Loading…
x
Reference in New Issue
Block a user