parent
e64ed0fd4a
commit
9c6667d74f
1 changed files with 30 additions and 2 deletions
32
README.md
32
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
|
||||
|
|
Loading…
Reference in a new issue