feat(home-assistant): bump base image to v2024.9.1 (#7) #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Test (Ubuntu 22.04)" | |
on: | |
pull_request: | |
branches: | |
- "master" | |
paths-ignore: | |
- '**.md' | |
push: | |
branches: | |
- "master" | |
paths-ignore: | |
- '**.md' | |
schedule: | |
- cron: "0 7 * * 0" | |
jobs: | |
test: | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: "Print Ansible environment" | |
run: "ansible --version" | |
- name: "Install dependencies" | |
run: | | |
# fix ModuleNotFoundError: No module named 'requests' | |
/opt/pipx/venvs/ansible-core/bin/python -m pip install requests | |
ansible-galaxy install geerlingguy.docker | |
ansible-galaxy collection install community.docker | |
ansible-galaxy collection install . -f | |
- name: "Deploy containers with smarthome role" | |
run: "ansible-playbook -i localhost .github/ansible/playbook-ci.yml -v -e \"ansible_user=${USER}\"" | |
- name: "Wait for containers to start" | |
run: "sleep 60" | |
- name: "Print docker logs" | |
run: | | |
docker ps -a | |
docker logs homeassistant | |
docker logs zigbee2mqtt | |
docker logs mosquitto |