ha-testing/.drone.yml
sthope e6f1ed0e8e
All checks were successful
continuous-integration/drone/push Build is passing
Update '.drone.yml'
2021-09-02 12:40:55 +02:00

67 lines
1.5 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: Test HA stable
pull: always
image: homeassistant/home-assistant:latest
commands:
# - mv mock_secrets.yaml secrets.yaml
- cp -r . /config/
- hass -c /config --script check_config
- name: Test HA rc
pull: always
image: homeassistant/home-assistant:rc
commands:
# - mv mock_secrets.yaml secrets.yaml
- cp -r . /config/
- hass -c /config --script check_config
- name: Test HA dev
pull: always
image: homeassistant/home-assistant:dev
commands:
# - mv mock_secrets.yaml secrets.yaml
- cp -r . /config/
- hass -c /config --script check_config
- 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
message: >
{{#success build.status}}
✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{else}}
❌ Build #{{build.number}} of `{{repo.name}}` failed.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{/success}}