From 93c161e7ff262a6861ec82e9d3801e5898a5d7a6 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 15 Apr 2026 17:39:53 +0200 Subject: [PATCH] feat: update build process to use NixOS environment with Buildah and Podman Signed-off-by: Uwe Hermann --- .gitea/workflows/test_build_and_push.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test_build_and_push.yaml b/.gitea/workflows/test_build_and_push.yaml index 953afde..e7dc32a 100644 --- a/.gitea/workflows/test_build_and_push.yaml +++ b/.gitea/workflows/test_build_and_push.yaml @@ -20,7 +20,8 @@ jobs: buildpush: name: build_and_push needs: [test_shellcheck] - runs-on: ubuntu-latest + runs-on: [self-hosted, nixos] # For NixOS runners + # runs-on: ubuntu-latest # For Ubuntu runners strategy: matrix: image: @@ -37,6 +38,16 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup NixOS environment + run: | + # Ensure buildah and podman are available + export PATH="/run/wrappers/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:$PATH" + echo "PATH=$PATH" >> $GITHUB_ENV + + # Verify tools are available + which buildah || echo "buildah not found in PATH" + which podman || echo "podman not found in PATH" + - name: Build ${{ matrix.image.name }} image id: build uses: redhat-actions/buildah-build@v2