job "builder" { namespace = "ci" type = "batch" datacenters = ["neptune", "jupiter", "corrin", "bespin"] priority = 100 parameterized { payload = "optional" meta_required = [ "REPO_URL", "COMMIT", "BRANCH", "FLAVOR" ] } reschedule { attempts = 0 unlimited = false } task "runner" { driver = "docker" config { image = "nixpkgs/nix:nixos-22.11" args = [ "/tmp/builder.sh" ] volumes = [ "local/builder.sh:/tmp/builder.sh", "local/nix.conf:/etc/nix/nix.conf", "local/secrets:/var/run/secrets/albatros", ] } dispatch_payload { file = "secrets/secret.txt" } template { data = <