Skip to content

Commit

Permalink
Merge pull request #5 from petm5/dev
Browse files Browse the repository at this point in the history
Fix actions
  • Loading branch information
petm5 authored Sep 6, 2024
2 parents a262b2c + ac7ccd2 commit a445ff3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix build .#nixlet -o nixlet
- run: nix build .#nixletNoTpm -o nixlet-no-tpm
- name: Set release version
id: vars
run: |
version=$(nix eval .#version)
echo "APP_VERSION=$version" >> $GITHUB_ENV
- uses: ncipollo/[email protected]
with:
tag: ${{ github.head_ref }}
tag: "${{ env.VERSION }}"
artifacts: "nixlet,nixlet-no-tpm"
12 changes: 6 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
system = "x86_64-linux";
};
baseUpdateUrl = "https://github.com/petm5/nixlet/releases/latest/download";
relInfo = {
system.image.id = "nixlet";
system.image.version = "4.0.0";
};
releaseVersion = "0.0.4";
in {
nixosModules.server = {
imports = [
Expand All @@ -25,6 +22,7 @@
./modules/image/disk
];
};
version = releaseVersion;
packages.x86_64-linux.nixlet = (nixpkgs.lib.nixosSystem {
modules = [
({ lib, ... }: {
Expand All @@ -34,10 +32,11 @@
{
boot.kernelParams = [ "quiet" ];
system.image.updates.url = "${baseUpdateUrl}/nixlet";
system.image.id = "nixlet";
system.image.version = releaseVersion;
}
self.nixosModules.image
self.nixosModules.server
relInfo
];
}).config.system.build.updatePackage;
packages.x86_64-linux.nixletNoTpm = (nixpkgs.lib.nixosSystem {
Expand All @@ -50,10 +49,11 @@
{
boot.kernelParams = [ "quiet" ];
system.image.updates.url = "${baseUpdateUrl}/nixlet-no-tpm";
system.image.id = "nixlet";
system.image.version = releaseVersion;
}
self.nixosModules.image
self.nixosModules.server
relInfo
];
}).config.system.build.updatePackage;
checks.x86_64-linux = nixpkgs.lib.listToAttrs (map (test: nixpkgs.lib.nameValuePair "${test}" (import ./tests/${test}.nix {
Expand Down

0 comments on commit a445ff3

Please sign in to comment.