Update '.drone.yml'
This commit is contained in:
parent
516241dec3
commit
e77f1a41c3
51
.drone.yml
51
.drone.yml
@ -1,31 +1,26 @@
|
|||||||
kind: pipeline
|
# Generic Home Assistant template
|
||||||
type: docker
|
.ha: &ha
|
||||||
name: default
|
stage: homeassistant
|
||||||
|
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
|
||||||
|
|
||||||
steps:
|
# Home Assistant test jobs
|
||||||
|
ha-latest:
|
||||||
- name: ha-latest
|
<<: *ha
|
||||||
pull: always
|
image:
|
||||||
image: ghcr.io/home-assistant/home-assistant:stable
|
name: homeassistant/home-assistant:latest
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
needs: []
|
needs: []
|
||||||
|
|
||||||
- name: discord
|
|
||||||
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