ci: allow schedule to build and deploy; add healthcheck to sample docker-compose

pull/106/head
Jeff Culverhouse 3 months ago
parent 279039216c
commit 0d7e8d9cb7

@ -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 }}

@ -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"

Loading…
Cancel
Save