22 lines
387 B
YAML
22 lines
387 B
YAML
stages:
|
|
- test
|
|
- deploy
|
|
|
|
test:
|
|
stage: test
|
|
image: alpine:latest
|
|
before_script:
|
|
- apk update
|
|
- apk add python3
|
|
- pip3 install homeassistant==$(cat .HA_VERSION)
|
|
script:
|
|
- cp secrets.example.yaml secrets.yaml
|
|
- touch zones.yaml
|
|
- hass -c . --script check_config --files
|
|
deploy:
|
|
stage: deploy
|
|
tags:
|
|
- home
|
|
- shell
|
|
script:
|
|
- make upgrade
|