Skip to content

Add per-camera detection schedules and improve sunset/sunrise config #14

Add per-camera detection schedules and improve sunset/sunrise config

Add per-camera detection schedules and improve sunset/sunrise config #14

name: Build & Publish Docker Images
on:
push:
branches: [main]
release:
types: [published]
env:
REGISTRY: ghcr.io
jobs:
build-and-push:
name: Build & Push Images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# ── VoxWatch Core Service ─────────────────────────────────────────
- name: Docker meta (voxwatch)
id: meta-voxwatch
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/badbread/voxwatch
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=sha,prefix=
- name: Build & push voxwatch
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta-voxwatch.outputs.tags }}
labels: ${{ steps.meta-voxwatch.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# ── Dashboard ─────────────────────────────────────────────────────
- name: Docker meta (dashboard)
id: meta-dashboard
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/badbread/voxwatch-dashboard
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=sha,prefix=
- name: Build & push dashboard
uses: docker/build-push-action@v5
with:
context: dashboard/
push: true
tags: ${{ steps.meta-dashboard.outputs.tags }}
labels: ${{ steps.meta-dashboard.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max