Skip to content

Introduce and use service_path variable #4

Introduce and use service_path variable

Introduce and use service_path variable #4

---
name: Deploy homeassistant
on: # yamllint disable-line rule:truthy
push:
branches:
- main
paths:
- roles/homeassistant/**
- .github/workflows/homeassistant.yaml
pull_request:
paths:
- roles/homeassistant/**
- .github/workflows/homeassistant.yaml
jobs:
home-assistant:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: 3.x
- run: |
sed -i '/vars_files/I,+1 d' main.yaml
sed -i '/vault_password_file/d' ansible.cfg
pip install ansible
ansible-galaxy install --role-file requirements.yaml
ansible-playbook main.yaml --limit localhost --tags homeassistant \
--extra-vars "domain=ci"
docker ps --filter name=homeassistant | grep --quiet homeassistant
docker exec homeassistant hass --config /config --script check_config