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