Add all production builds, and copy to filesever

This commit is contained in:
NeilClack
2026-07-28 08:43:50 -05:00
parent dda2eca121
commit 7f23e7082a
2 changed files with 104 additions and 27 deletions
+27 -27
View File
@@ -6,35 +6,35 @@ jobs:
update-and-build:
runs-on: radiantwave-actions
steps:
- name: Print Environment
run: |
echo "=== whoami/hostname ==="
whoami
hostname
echo "=== pwd ==="
pwd
echo "=== PATH ==="
echo "$PATH"
echo "=== full env ==="
env | sort
echo "=== os-release ==="
cat /etc/os-release 2>/dev/null || echo "no os-release"
echo "=== does /nix exist ==="
ls -la /nix 2>&1 || echo "/nix missing"
echo "=== does /nix/var/nix/profiles/default/bin exist ==="
ls -la /nix/var/nix/profiles/default/bin 2>&1 || echo "missing"
echo "=== is this a container ==="
cat /proc/1/cgroup 2>/dev/null | head -5
[ -f /.dockerenv ] && echo "IS a docker container" || echo "NOT a docker container (no /.dockerenv)"
# - name: Print Environment
# run: |
# echo "=== whoami/hostname ==="
# whoami
# hostname
# echo "=== pwd ==="
# pwd
# echo "=== PATH ==="
# echo "$PATH"
# echo "=== full env ==="
# env | sort
# echo "=== os-release ==="
# cat /etc/os-release 2>/dev/null || echo "no os-release"
# echo "=== does /nix exist ==="
# ls -la /nix 2>&1 || echo "/nix missing"
# echo "=== does /nix/var/nix/profiles/default/bin exist ==="
# ls -la /nix/var/nix/profiles/default/bin 2>&1 || echo "missing"
# echo "=== is this a container ==="
# cat /proc/1/cgroup 2>/dev/null | head -5
# [ -f /.dockerenv ] && echo "IS a docker container" || echo "NOT a docker container (no /.dockerenv)"
- name: Checkout
uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
# - name: Install Nix
# uses: cachix/install-nix-action@v31
# with:
# extra_nix_config: |
# experimental-features = nix-command flakes
- name: Configure git auth for Gitea
run: |
@@ -59,7 +59,7 @@ jobs:
export NIXPKGS_ALLOW_UNFREE=1
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix build -L --impure .#nixosConfigurations.dev-iso.config.system.build.isoImage
cp -rL result/iso/*.iso /ssd/radiantwave/build/radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso
cp -rL result/iso/*.iso /home/runner/radiantwave/radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso
- name: Commit updated flake.lock
run: |
@@ -71,7 +71,7 @@ jobs:
git push
- name: Copy ISO to fileserver
run: scp result/iso/* radiantwave-infra:/mnt/infrastructure_data/files/images/
run: scp /home/runner/radiantwave/iso/* radiantwave-infra:/mnt/infrastructure_data/files/images/
- name: Notify
if: always()