This commit is contained in:
parent
e5c27d7aa8
commit
723bc90852
|
@ -1,5 +1,5 @@
|
||||||
labels:
|
labels:
|
||||||
type: exec
|
backend: exec
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
- name: nix flake check
|
- name: nix flake check
|
||||||
|
@ -7,6 +7,16 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- nix flake check
|
- nix flake check
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: bash
|
||||||
|
commands:
|
||||||
|
# We already ran the checks in the previous step
|
||||||
|
- deploy --skip-checks
|
||||||
|
when:
|
||||||
|
# FIXME: disable PR
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
- name: notifiy
|
- name: notifiy
|
||||||
image: bash
|
image: bash
|
||||||
secrets:
|
secrets:
|
||||||
|
|
34
flake.lock
34
flake.lock
|
@ -47,6 +47,33 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"deploy-rs": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": [
|
||||||
|
"flake-compat"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"utils": [
|
||||||
|
"futils"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1674127017,
|
||||||
|
"narHash": "sha256-QO1xF7stu5ZMDLbHN30LFolMAwY6TVlzYvQoUs1RD68=",
|
||||||
|
"owner": "serokell",
|
||||||
|
"repo": "deploy-rs",
|
||||||
|
"rev": "8c9ea9605eed20528bf60fae35a2b613b901fd77",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "serokell",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "deploy-rs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -59,6 +86,7 @@
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
|
"ref": "master",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -179,7 +207,9 @@
|
||||||
},
|
},
|
||||||
"pre-commit-hooks": {
|
"pre-commit-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": [
|
||||||
|
"flake-compat"
|
||||||
|
],
|
||||||
"flake-utils": [
|
"flake-utils": [
|
||||||
"futils"
|
"futils"
|
||||||
],
|
],
|
||||||
|
@ -209,6 +239,8 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"deploy-rs": "deploy-rs",
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"futils": "futils",
|
"futils": "futils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
|
21
flake.nix
21
flake.nix
|
@ -12,6 +12,26 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
deploy-rs = {
|
||||||
|
type = "github";
|
||||||
|
owner = "serokell";
|
||||||
|
repo = "deploy-rs";
|
||||||
|
ref = "master";
|
||||||
|
inputs = {
|
||||||
|
flake-compat.follows = "flake-compat";
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
utils.follows = "futils";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake-compat = {
|
||||||
|
type = "github";
|
||||||
|
owner = "edolstra";
|
||||||
|
repo = "flake-compat";
|
||||||
|
ref = "master";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
flake-parts = {
|
flake-parts = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "hercules-ci";
|
owner = "hercules-ci";
|
||||||
|
@ -59,6 +79,7 @@
|
||||||
repo = "pre-commit-hooks.nix";
|
repo = "pre-commit-hooks.nix";
|
||||||
ref = "master";
|
ref = "master";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
flake-compat.follows = "flake-compat";
|
||||||
flake-utils.follows = "futils";
|
flake-utils.follows = "futils";
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
nixpkgs-stable.follows = "nixpkgs";
|
nixpkgs-stable.follows = "nixpkgs";
|
||||||
|
|
|
@ -11,6 +11,7 @@ flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
imports = [
|
imports = [
|
||||||
./apps.nix
|
./apps.nix
|
||||||
./checks.nix
|
./checks.nix
|
||||||
|
./deploy-rs.nix
|
||||||
./dev-shells.nix
|
./dev-shells.nix
|
||||||
./home-manager.nix
|
./home-manager.nix
|
||||||
./lib.nix
|
./lib.nix
|
||||||
|
|
26
flake/deploy-rs.nix
Normal file
26
flake/deploy-rs.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ self, inputs, ... }:
|
||||||
|
let
|
||||||
|
inherit (inputs)
|
||||||
|
deploy-rs
|
||||||
|
;
|
||||||
|
inherit (self) lib;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
perSystem = { system, ... }: {
|
||||||
|
checks = deploy-rs.lib.${system}.deployChecks self.deploy;
|
||||||
|
};
|
||||||
|
|
||||||
|
flake = {
|
||||||
|
deploy = {
|
||||||
|
nodes = {
|
||||||
|
porthos = {
|
||||||
|
hostname = "belanyi.fr";
|
||||||
|
profiles.system = {
|
||||||
|
user = "root";
|
||||||
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.porthos;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue