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
shell: bash
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
echo "Version mismatch"
exit 1

View File

@ -9,12 +9,12 @@
inputs.utils.follows = "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:
let
version = "0.1.0"; # CI:CD-VERSION
pkgs = import nixpkgs {
inherit system;
overlays = [