feat: add nix-host and also transition to building both images with it
Some checks failed
Build and Push docker image / buildAndPush (nix) (push) Failing after 3s
Build and Push docker image / buildAndPush (nix-host) (push) Failing after 3s

This commit is contained in:
Tamipes 2026-08-22 18:05:28 +02:00
parent a6c6db37b1
commit 8436b99f18
2 changed files with 50 additions and 4 deletions

View file

@ -8,11 +8,15 @@ on:
jobs:
buildAndPush:
runs-on: [ nix ]
runs-on: [ nix-host ]
strategy:
fail-fast: false
matrix:
containers: ["nix", "nix-host"]
steps:
- uses: actions/checkout@v4
- name: Nix build
run: nix build --extra-experimental-features "flakes nix-command" .
run: nix build --extra-experimental-features "flakes nix-command" .${{matrix.containers}}
- name: Setup skopeo
run: curl -o /etc/containers/policy.json --create-dirs https://raw.githubusercontent.com/containers/skopeo/refs/heads/main/default-policy.json
- name: Push Image
@ -22,9 +26,9 @@ jobs:
env:
USERNAME: tamipes
UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }}
IMG_URL: git.tami.moe/tamipes/nix
IMG_URL: git.tami.moe/tamipes/${{matrix.containers}}
- name: niks3 pin
uses: https://git.tami.moe/actions/niks3-upload@main
with:
token: ${{ secrets.NIKS3_TOKEN }}
pin: nix-container
pin: containers.${{matrix.containers}}