Add deployment to GitLab CI
This commit is contained in:
parent
8459873d42
commit
5d28404620
|
@ -1,12 +1,22 @@
|
|||
image: alpine:latest
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
before_script:
|
||||
- apk update
|
||||
- apk add python3
|
||||
- pip3 install homeassistant==$(cat .HA_VERSION)
|
||||
|
||||
test:config:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue