diff --git a/README.md b/README.md index e2b545d..5c55d24 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,41 @@ we might do it in Albatros... Requirements: Nomad, Consul, Gitea +Prepare your nomad cluster: + ``` -export ALBATROS_URL="https://albatros.deuxfleurs.fr" nomad namespace apply -description "Continuous Integration" ci nomad run hcl/builder.hcl -go run main.go ``` +Run from the terminal directly: + +``` +export ALBATROS_URL="https://albatros.deuxfleurs.fr" +export NOMAD_ADDR=... +export NOMAD_CLIENT_CERT=... +export NOMAD_CLIENT_KEY=... +export NOMAD_CACERT=... +export CONSUL_HTTP_ADDR=... +export CONSUL_CLIENT_CERT=... +export CONSUL_CLIENT_KEY=... +export CONSUL_CACERT=... +./albatros +``` + +Run from docker: + +``` +docker run --rm -it dxflrs/albatros:xxx +``` + +where `xxx` is the commit sha you want. + +## Builders + +Currently, we propose a single, nix-based builder. +I am currently working on using proper caching on it. + ## Register a build Add to Consul a key in albatros hierarchy