From 0d7e8d9cb7752af5fd96a30c2bb750147c7893b3 Mon Sep 17 00:00:00 2001 From: Jeff Culverhouse Date: Sat, 1 Nov 2025 15:03:27 -0400 Subject: [PATCH] ci: allow schedule to build and deploy; add healthcheck to sample docker-compose --- .github/workflows/deploy.yaml | 2 -- docker-compose.yaml | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 69763fd..28898be 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -19,7 +19,6 @@ jobs: lint: name: Lint (ruff/black/mypy) runs-on: ubuntu-latest - if: github.event_name != 'schedule' strategy: fail-fast: false max-parallel: 2 @@ -59,7 +58,6 @@ jobs: name: Semantic Release runs-on: ubuntu-latest needs: [lint] - if: github.event_name != 'schedule' outputs: published: ${{ steps.semrel.outputs.new_release_published }} version: ${{ steps.semrel.outputs.new_release_version }} diff --git a/docker-compose.yaml b/docker-compose.yaml index 87a4134..9d540c6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,6 +11,12 @@ services: environment: - TZ=${TZ:-UTC} - CONFIG_PATH=/config/config.yaml + healthcheck: + test: ["CMD", "python3", "/app/src/healthcheck.py"] + interval: 60s + timeout: 5s + retries: 3 + start_period: 20s labels: org.opencontainers.image.title: "amcrest2mqtt" org.opencontainers.image.description: "Publishes Amcrest camera events and states via MQTT"