Compare commits

..

9 Commits

Author SHA1 Message Date
d456c6e386 guh
Some checks failed
Weekly Flake Update / hydra_callback (pull_request) Has been cancelled
2026-03-25 10:36:20 +01:00
b238750a16 testcommit
Some checks failed
Weekly Flake Update / hydra_callback (pull_request) Has been cancelled
2026-03-25 10:28:53 +01:00
22e49eb5a1 2
All checks were successful
Weekly Flake Update / update_and_check_flake (push) Successful in 4m45s
2026-03-25 10:25:45 +01:00
9648ff2adc fix 2026-03-25 10:19:25 +01:00
9faf4de28d add hydra wait thingie 2026-03-25 09:52:43 +01:00
5634919fa6 cut var
All checks were successful
Weekly Flake Update / update_and_check_flake (push) Successful in 5m55s
2026-03-14 13:42:53 +01:00
394c0610ce Try out workflow check 2026-03-14 13:14:15 +01:00
6dee590206 Merge pull request 'Hydra integration' (#145) from ahtlon/infrastructure:hydra_integration3 into master
Reviewed-on: malobeo/infrastructure#145
Reviewed-by: kalipso <kalipso@c3d2.de>
2026-03-14 12:21:15 +01:00
b6cd2b57f8 Document the gitea-translator module 2026-03-13 16:30:31 +01:00
4 changed files with 38 additions and 7 deletions

View File

@@ -0,0 +1,31 @@
name: Weekly Flake Update
on:
pull_request:
types:
- opened
permissions:
contents: write
jobs:
hydra_callback:
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- name: Install sudo
run: |
apt-get update
apt-get install -y sudo
- name: Set up Nix
uses: https://github.com/cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }}
- name: Find pr number
run: |
echo PR=$(echo "${{ github.ref }}" | cut -d / -f 3) >> "$GITHUB_ENV"
- name: run hydra wait
run: |
echo "Running now @ pr no $PR"
nix run nixpkgs#hydra-cli -- -H https://hydra.dynamicdiscord.de jobset-wait malobeo2 "$PR"

View File

@@ -8,13 +8,13 @@ let
enabled = 1;
hidden = false;
description = "PR ${num}: ${info.title}";
checkinterval = 60;
checkinterval = 300;
schedulingshares = 20;
enableemail = false;
emailoverride = "";
keepnr = 1;
type = 1;
flake = "${info.head.repo.html_url}/archive/${info.head.sha}.tar.gz";
flake = "${info.head.repo.html_url}/archive/${info.head.ref}.tar.gz";
inputs = {
gitea_repo_name = {
type = "string";
@@ -33,14 +33,14 @@ let
};
gitea_status_repo = {
type = "string";
value = "${info.head.sha}";
value = "${info.head.ref}";
emailresponsible = false;
};
};
}) prs;
mkFlakeJobset = branch: {
description = "Build ${branch} branch of the Malobeo Infrastructure repo";
checkinterval = 60;
checkinterval = 300;
enabled = "1";
schedulingshares = 100;
enableemail = false;
@@ -48,7 +48,7 @@ let
keepnr = 3;
hidden = false;
type = 1;
flake = "https://git.dynamicdiscord.de/ahtlon/infrastructure/archive/${branch}.tar.gz";
flake = "https://git.dynamicdiscord.de/malobeo/infrastructure/archive/${branch}.tar.gz";
};
desc = prJobsets // {

View File

@@ -8,7 +8,7 @@ hosts are deployed automatically from master. The [hydra build server](https://h
Big changes (like updating flake lock) could be commited to the staging branch first. [Hydra builds staging seperate](https://hydra.dynamicdiscord.de/jobset/malobeo/staging), and on success you can merge into master.
### deploy fresh host
if you want to deploy a completly new host refer to [docs](https://docs.malobeo.org/anleitung/create.html)
if you want to deploy a completldy new host refer to [docs](https://docs.malobeo.org/anleitung/create.html)
### testing configuration

View File

@@ -19,6 +19,7 @@ with lib;
imports = [
self.nixosModules.malobeo.metrics
inputs.tasklist.nixosModules.malobeo-tasklist
../modules/malobeo_user.nix
../modules/sshd.nix
../modules/minimal_tools.nix
@@ -31,7 +32,6 @@ with lib;
};
services.malobeo-tasklist.enable = true;
services.gitea-translator.enable = true;
system.stateVersion = "22.11"; # Did you read the comment?
}