Wire Forge-native release infrastructure
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
This commit is contained in:
parent
97c569fb35
commit
002bd382e9
199 changed files with 14268 additions and 185 deletions
|
|
@ -7,6 +7,7 @@ let
|
|||
runnerFile = "${stateDir}/.runner";
|
||||
registrationFingerprintFile = "${stateDir}/.runner-registration-fingerprint";
|
||||
configFile = "${stateDir}/runner.yaml";
|
||||
ageIdentityFile = "${stateDir}/age_keystore";
|
||||
labelsCsv = lib.concatStringsSep "," (map (label: "${label}:host") cfg.labels);
|
||||
registrationFingerprint = builtins.hashString "sha256" "${cfg.instanceUrl}\n${cfg.name}\n${labelsCsv}";
|
||||
sshPrivateKeyFile = cfg.sshPrivateKeyFile or "";
|
||||
|
|
@ -164,6 +165,9 @@ EOF
|
|||
install -m 0600 -o ${cfg.user} -g ${cfg.group} \
|
||||
${lib.escapeShellArg sshPrivateKeyFile} \
|
||||
${stateDir}/.ssh/id_ed25519
|
||||
install -m 0600 -o ${cfg.user} -g ${cfg.group} \
|
||||
${lib.escapeShellArg sshPrivateKeyFile} \
|
||||
${ageIdentityFile}
|
||||
cat > ${stateDir}/.ssh/config <<EOF
|
||||
Host *
|
||||
IdentityFile ${stateDir}/.ssh/id_ed25519
|
||||
|
|
@ -208,7 +212,13 @@ EOF
|
|||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
WorkingDirectory = stateDir;
|
||||
Environment = [ "BURROW_RUNNER_REGISTRATION_FINGERPRINT=${registrationFingerprint}" ];
|
||||
Environment = [
|
||||
"BURROW_RUNNER_REGISTRATION_FINGERPRINT=${registrationFingerprint}"
|
||||
"BURROW_RUNNER_AGE_IDENTITY_PATH=${ageIdentityFile}"
|
||||
"FORGEJO_RUNNER_HOME=${stateDir}"
|
||||
"RUNNER_HOME=${stateDir}"
|
||||
"HOME=${stateDir}"
|
||||
];
|
||||
Restart = "on-failure";
|
||||
RestartSec = 2;
|
||||
ExecStart = pkgs.writeShellScript "burrow-forgejo-runner" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue