This commit is contained in:
parent
0ae7f5fbd9
commit
ee18ddcebc
3 changed files with 55 additions and 10 deletions
38
.drone.yml
Normal file
38
.drone.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
node:
|
||||
nix-daemon: 1
|
||||
|
||||
steps:
|
||||
- name: check formatting
|
||||
image: nixpkgs/nix:nixos-22.05
|
||||
commands:
|
||||
- nix-shell -p cargo --run "cargo fmt -- --check"
|
||||
|
||||
- name: build
|
||||
image: nixpkgs/nix:nixos-22.05
|
||||
commands:
|
||||
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#debug.x86_64-linux.tricot
|
||||
|
||||
- name: test
|
||||
image: nixpkgs/nix:nixos-22.05
|
||||
commands:
|
||||
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.tricot
|
||||
- ./result-bin/bin/tricot-*
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- custom
|
||||
- push
|
||||
- pull_request
|
||||
- tag
|
||||
- cron
|
||||
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: c99528a32d4c9f5016e6143e08291c99a8b248880f7dc3ee3550803e16cd28ad
|
||||
|
||||
...
|
|
@ -1,5 +1,7 @@
|
|||
# Tricot
|
||||
|
||||
[![Build Status](https://drone.deuxfleurs.fr/api/badges/Deuxfleurs/tricot/status.svg)](https://drone.deuxfleurs.fr/Deuxfleurs/tricot)
|
||||
|
||||
Tricot is a reverse-proxy for exposing your services via TLS that integrates well with Consul and Nomad.
|
||||
|
||||
Tricot does the following things:
|
||||
|
|
21
flake.nix
21
flake.nix
|
@ -15,17 +15,22 @@
|
|||
overlays = [ cargo2nix.overlays.default ];
|
||||
};
|
||||
packageFun = import ./Cargo.nix;
|
||||
packageSet = pkgs.rustBuilder.makePackageSet {
|
||||
inherit packageFun;
|
||||
release = true;
|
||||
rustVersion = "1.63.0";
|
||||
};
|
||||
tricot = packageSet.workspace.tricot {
|
||||
compileMode = "build";
|
||||
|
||||
compile = args: compileMode:
|
||||
let
|
||||
packageSet = pkgs.rustBuilder.makePackageSet ({
|
||||
inherit packageFun rustVersion;
|
||||
} // args);
|
||||
in
|
||||
packageSet.workspace.tricot {
|
||||
inherit compileMode;
|
||||
};
|
||||
in
|
||||
{
|
||||
packages.x86_64-linux.tricot = tricot;
|
||||
packages.x86_64-linux.default = tricot;
|
||||
test.x86_64-linux.tricot = compile { release = false; } "test";
|
||||
debug.x86_64-linux.tricot = compile { release = false; } "build";
|
||||
packages.x86_64-linux.tricot = compile { release = true; } "build";
|
||||
packages.x86_64-linux.default = self.packages.x86_64-linux.tricot;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue