improve readme
Albatros default Details

This commit is contained in:
Quentin 2023-03-22 16:33:51 +01:00
parent e64ed0fd4a
commit 9c6667d74f
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 30 additions and 2 deletions

View File

@ -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