From b9df93d0d434bd4d0e94cb85fcd75b449289923b Mon Sep 17 00:00:00 2001 From: Jakob Ankarhem Date: Mon, 8 Jun 2026 18:26:51 +0200 Subject: [PATCH] deploy as app to reduce ci time --- .github/workflows/deploy.yml | 4 ++-- flake.nix | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f350b13..11f3ef5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -64,6 +64,6 @@ jobs: echo "::error::homelab not reachable over Tailscale"; exit 1 - name: Deploy blog to homelab - # Use the deploy-rs pinned in flake.lock (via the devShell) so the + # Use the deploy-rs pinned in flake.lock (via the deploy app) so the # CLI matches the lib that built the activation profile. - run: nix develop --command deploy .#homelab.blog + run: nix run .#deploy -- .#homelab.blog diff --git a/flake.nix b/flake.nix index 98a543c..85ade0c 100644 --- a/flake.nix +++ b/flake.nix @@ -43,6 +43,11 @@ treefmt.enable = true; }; + apps.deploy = { + type = "app"; + program = "${inputs.deploy-rs.packages.${system}.default}/bin/deploy"; + }; + packages.blog = pkgs.stdenvNoCC.mkDerivation { pname = "ankarhem-blog-site"; version = "0"; -- 2.51.2