kind: pipeline
type: docker
name: default

steps:
- name: ha-stable
  pull: always
  image: ghcr.io/home-assistant/home-assistant:stable
  commands:
  - python -m homeassistant --config $CI_PROJECT_DIR --script check_config --info all


- 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