All checks were successful
Build and Deploy Frigate / build-push-deploy (push) Successful in 8m19s
- Dockerfile: wrapper FROM ghcr.io/blakeblackshear/frigate:stable - frigate.nomad: Nomad job, constrained to int node, dynamic port->5000, host volumes - config/config.yml: cam_167 + cam_168 RTSP, motion detection, 7-day recording - .gitea/workflows/deploy.yml: build -> push registry.i80.dk -> nomad deploy
35 lines
935 B
YAML
35 lines
935 B
YAML
name: Build and Deploy Frigate
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-push-deploy:
|
|
runs-on: debian-host
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Login to Harbor
|
|
run: echo "${{ secrets.HARBOR_ROBOT_TOKEN }}" | docker login registry.i80.dk -u 'robot$gitserver' --password-stdin
|
|
|
|
- name: Build and push image
|
|
run: |
|
|
docker build \
|
|
-t registry.i80.dk/gitea/frigate:latest \
|
|
-t registry.i80.dk/gitea/frigate:${{ github.sha }} \
|
|
.
|
|
docker push registry.i80.dk/gitea/frigate:latest
|
|
docker push registry.i80.dk/gitea/frigate:${{ github.sha }}
|
|
|
|
- name: Validate Nomad job
|
|
run: nomad job validate frigate.nomad
|
|
env:
|
|
NOMAD_ADDR: https://nomad.i80.dk:4646
|
|
|
|
- name: Deploy to Nomad
|
|
run: nomad job run frigate.nomad
|
|
env:
|
|
NOMAD_ADDR: https://nomad.i80.dk:4646
|