feat: update build process to use NixOS environment with Buildah and Podman
Some checks failed
Build and push / check and test (push) Successful in 8s
Build and push / build_and_push (map[name:metabase path:metabase]) (push) Has been cancelled
Build and push / build_and_push (map[name:postgres-backup path:postgres-backup]) (push) Has been cancelled
Build and push / build_and_push (map[name:pyweb path:pyweb]) (push) Has been cancelled
Build and push / build_and_push (map[name:shellcheck path:shellcheck]) (push) Has been cancelled
Build and push / build_and_push (map[name:vaultwarden-backup path:vaultwarden-backup]) (push) Has been cancelled

Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
2026-04-15 17:39:53 +02:00
parent f19b1f26cd
commit 93c161e7ff

View File

@@ -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