Merge pull request #130 from Mic92/github-timeout
master: add workaround if github is not present during boot
This commit is contained in:
commit
35a1162d84
11
README.md
11
README.md
|
@ -65,17 +65,20 @@ To integrate with GitHub:
|
||||||
|
|
||||||
### Binary caches
|
### Binary caches
|
||||||
|
|
||||||
To access the build results on other machines there are two options at the moment
|
To access the build results on other machines there are two options at the
|
||||||
|
moment
|
||||||
|
|
||||||
#### Local binary cache (harmonia)
|
#### Local binary cache (harmonia)
|
||||||
|
|
||||||
You can set up a binary cache on your buildbot-worker machine to make its nix store
|
You can set up a binary cache on your buildbot-worker machine to make its nix
|
||||||
accessible from other machines. Check out the README of the [project](https://github.com/nix-community/harmonia/?tab=readme-ov-file#configuration-for-public-binary-cache-on-nixos),
|
store accessible from other machines. Check out the README of the
|
||||||
|
[project](https://github.com/nix-community/harmonia/?tab=readme-ov-file#configuration-for-public-binary-cache-on-nixos),
|
||||||
for an example configuration
|
for an example configuration
|
||||||
|
|
||||||
#### Cachix
|
#### Cachix
|
||||||
|
|
||||||
Buildbot-nix also supports pushing packages to cachix. Check out the comment out [example configuration](https://github.com/Mic92/buildbot-nix/blob/main/examples/master.nix)
|
Buildbot-nix also supports pushing packages to cachix. Check out the comment out
|
||||||
|
[example configuration](https://github.com/Mic92/buildbot-nix/blob/main/examples/master.nix)
|
||||||
in our repository.
|
in our repository.
|
||||||
|
|
||||||
### Real-World Deployments
|
### Real-World Deployments
|
||||||
|
|
|
@ -206,6 +206,11 @@ in
|
||||||
"cachix-signing-key:${builtins.toString cfg.cachix.signingKeyFile}"
|
"cachix-signing-key:${builtins.toString cfg.cachix.signingKeyFile}"
|
||||||
++ lib.optional (cfg.cachix.authTokenFile != null)
|
++ lib.optional (cfg.cachix.authTokenFile != null)
|
||||||
"cachix-auth-token:${builtins.toString cfg.cachix.authTokenFile}";
|
"cachix-auth-token:${builtins.toString cfg.cachix.authTokenFile}";
|
||||||
|
|
||||||
|
# Needed because it tries to reach out to github on boot.
|
||||||
|
# FIXME: if github is not available, we shouldn't fail buildbot, instead it should just try later again in the background
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "30s";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue