fix(ci-cd): Fix CI:CD

This commit is contained in:
Myzel394 2024-10-16 21:39:09 +02:00
parent d7cbc9f454
commit 2e07b3e987
No known key found for this signature in database
GPG Key ID: ED20A1D1D423AF3F
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Check version in code matches flake version - name: Check version in code matches flake version
shell: bash shell: bash
run: | run: |
if ! [ $(grep '// CI:CD-VERSION$' server/root-handler/handler.go | cut -d'"' -f 2) = $(nix eval --file flake.nix inputs.version | cut -d '"' -f 2) ]; if ! [ $(grep '// CI:CD-VERSION$' server/root-handler/handler.go | cut -d'"' -f 2) = $(grep '# CI:CD-VERSION$' flake.nix | cut -d'"' -f 2) ];
then then
echo "Version mismatch" echo "Version mismatch"
exit 1 exit 1

View File

@ -9,12 +9,12 @@
inputs.utils.follows = "utils"; inputs.utils.follows = "utils";
}; };
utils.url = "github:numtide/flake-utils"; utils.url = "github:numtide/flake-utils";
version = "0.1.0";
}; };
outputs = { self, nixpkgs, utils, gomod2nix, version }: outputs = { self, nixpkgs, utils, gomod2nix }:
utils.lib.eachDefaultSystem (system: utils.lib.eachDefaultSystem (system:
let let
version = "0.1.0"; # CI:CD-VERSION
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
overlays = [ overlays = [