Changing Docker Compose SSH deployment action.
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Successful in 10s
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Failing after 1m18s
Home Assistant & Miscellaneous Deployment / Docker Compose Dry Run (push) Has been skipped
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Successful in 10s
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Failing after 1m18s
Home Assistant & Miscellaneous Deployment / Docker Compose Dry Run (push) Has been skipped
This commit is contained in:
@@ -65,42 +65,50 @@ jobs:
|
|||||||
name: Home Assistant Configuration Check
|
name: Home Assistant Configuration Check
|
||||||
needs: [check-and-create-pr]
|
needs: [check-and-create-pr]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HA_VERSION: "2025.8.3"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python 3.13.2
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.13.2'
|
python-version: '3.13.2'
|
||||||
- name: Gotify Notification
|
- name: Cache pip wheels
|
||||||
|
id: cache-wheels
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: pip-wheels-${{ runner.os }}-py3.13-ha-${{ env.HA_VERSION }}
|
||||||
|
restore-keys: |
|
||||||
|
pip-wheels-${{ runner.os }}-py3.13-
|
||||||
|
- name: Gotify Notification (setup)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.RIKKU_GOTIFY_URL }}'
|
gotify_api_base: ${{ secrets.RIKKU_GOTIFY_URL }}
|
||||||
gotify_app_token: '${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: 'Setting up Python >=3.13 and venv...'
|
notification_message: 'Setting up Python and dependencies...'
|
||||||
- name: Create virtual environment and install Home Assistant
|
- name: Build wheels & install Home Assistant
|
||||||
run: |
|
run: |
|
||||||
python -m venv venv
|
python -m pip install --upgrade pip wheel
|
||||||
source venv/bin/activate
|
pip wheel --wheel-dir ~/.cache/pip homeassistant==${HA_VERSION}
|
||||||
python -m pip install --upgrade pip
|
pip install --no-index --find-links ~/.cache/pip homeassistant==${HA_VERSION}
|
||||||
pip install homeassistant==2025.8.3
|
- name: Gotify Notification (start check)
|
||||||
- name: Gotify Notification
|
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.RIKKU_GOTIFY_URL }}'
|
gotify_api_base: ${{ secrets.RIKKU_GOTIFY_URL }}
|
||||||
gotify_app_token: '${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: 'Starting config check...'
|
notification_message: 'Starting config check...'
|
||||||
- name: Run Home Assistant config check
|
- name: Run Home Assistant config check
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
|
||||||
hass --config ansible/configs/homeassistant --script check_config | tee ha-check.log
|
hass --config ansible/configs/homeassistant --script check_config | tee ha-check.log
|
||||||
- name: Gotify Notification
|
- name: Gotify Notification (done)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
gotify_api_base: '${{ secrets.RIKKU_GOTIFY_URL }}'
|
gotify_api_base: ${{ secrets.RIKKU_GOTIFY_URL }}
|
||||||
gotify_app_token: '${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: '🚀 Config check done!'
|
notification_message: '🚀 Config check done!'
|
||||||
# generate-service-list:
|
# generate-service-list:
|
||||||
@@ -196,13 +204,27 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
vault kv get -format=json rikku-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
vault kv get -format=json rikku-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
||||||
- name: Docker Compose Dry Run
|
- name: Docker Compose Dry Run
|
||||||
uses: astappiev/docker-compose-remote-action@v1
|
uses: alcharra/docker-deploy-action-go@v2.1.0
|
||||||
with:
|
with:
|
||||||
ssh_user: pi
|
ssh_host: ${{ secrets.SSH_HOST }}
|
||||||
ssh_host: 192.168.1.252
|
ssh_user: ${{ secrets.SSH_USER }}
|
||||||
ssh_private_key: ${{ secrets.RIKKU_SSH_PRIVATE_KEY }}
|
ssh_key: ${{ secrets.RIKKU_SSH_PRIVATE_KEY }}
|
||||||
ssh_host_public_key: ${{ secrets.RIKKU_SSH_PUBLIC_KEY }}
|
project_path: /home/pi/.config/docker
|
||||||
docker_args: -d --remove-orphans
|
deploy_file: docker-compose.yml
|
||||||
|
mode: compose
|
||||||
|
extra_files: |
|
||||||
|
.env
|
||||||
|
compose_pull: true
|
||||||
|
compose_build: true
|
||||||
|
compose_no_deps: true
|
||||||
|
# compose_target_services: |
|
||||||
|
# web
|
||||||
|
# db
|
||||||
|
enable_rollback: true
|
||||||
|
registry_host: ghcr.io
|
||||||
|
registry_user: TrezOne
|
||||||
|
registry_pass: ${{ secrets.GHCR_LOGIN_TOKEN }}
|
||||||
|
verbose: true
|
||||||
- name: Gotify Notification
|
- name: Gotify Notification
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user