From ba9257a1a0a0863a92f3214771cf0697943e65c9 Mon Sep 17 00:00:00 2001 From: HaimKortovich Date: Tue, 31 Mar 2026 16:32:46 -0500 Subject: [PATCH] run on nixos --- .gitea/workflows/build-and-publish.yaml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml index 03a9ac3..b015e12 100644 --- a/.gitea/workflows/build-and-publish.yaml +++ b/.gitea/workflows/build-and-publish.yaml @@ -13,20 +13,14 @@ env: jobs: build-release: - runs-on: ubuntu-latest + runs-on: nixos steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Nix - uses: cachix/install-nix-action@v26 - with: - nix_path: nixpkgs=channel:nixos-unstable - - name: Build Docker Image via Nix Flake run: | - export HOME=$TMPDIR - nix build --impure ./build/#dockerImage + nix build ./build/#dockerImage docker load -i result - name: Log in to Gitea Container Registry @@ -40,19 +34,16 @@ jobs: run: | VERSION=${{ github.run_number }} TARGET_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - + nix shell nixpkgs#docker # Replace 'nix-built-image:latest' with your flake's internal image name docker tag nix-built-image:latest $TARGET_IMAGE:$VERSION docker push $TARGET_IMAGE:$VERSION - - name: Setup Helm - uses: azure/setup-helm@v4 - with: - version: v3.14.0 - - name: Package Helm Chart run: | VERSION=${{ github.run_number }} + + nix shell nixpkgs#kubernetes-helm # Packages the chart using the dynamically injected repo name helm package ops/chart --version $VERSION --app-version $VERSION