This repository contains an OCurrent pipeline that resolves the name, validates the certificates, tries to download from the website, and then posts the results to a Slack channel.
opam switch create . 4.14.1 --deps-only -y
dune build
Sign in to your GitHub Organzation, then go to Developer settings > OAuth Apps > New OAuth App
- Application name: ocurrent-observer
- Homepage URL http://observer.ocamllabs.io
- Authorization callback URL: http://observer.ocamllabs.io/login
Next click Generate a new client secret
{ "client_id": "", "client_secret": "", "scopes": [ "user:email" ] }
# Running on a Raspberry PI
I am using an older Raspberry PI which needs an arm/v7 binary which can be built like this.
docker buildx build -t mtelvers/ocurrent-observer:latest --platform linux/arm/v7 .
On the PI itself, install the dependencies, extract the image and run it.
apt install libev-dev dnsutils graphviz
docker run --rm --entrypoint cat mtelvers/ocurrent-observer /usr/local/bin/ocurrent-observer > ocurrent-observer
chmod +x ocurrent-observer
sudo ./ocurrent-observer --port 80 --slack ./slack.secret www.ocaml.org,opam.ocaml.org,images.ci.ocaml.org,deploy.ci.ocaml.org,opam-repo.ci.ocaml.org