Update workflow to be more verbose

This commit is contained in:
NeilClack
2026-08-02 01:39:34 -05:00
parent 8699d1f8b2
commit ff256288e0
4 changed files with 116 additions and 71 deletions
+18 -19
View File
@@ -2,9 +2,11 @@ on:
push:
branches:
- dev
jobs:
update-and-build:
runs-on: radiantwave-actions
steps:
# - name: Print Environment
# run: |
@@ -45,27 +47,29 @@ jobs:
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix flake update radiantwave-dev
- name: Prepare output directory
run: mkdir -p /home/runner/radiantwave
- name: Build dev ISO
run: |
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
mkdir -p /home/runner/radiantwave
ISO_NAME="radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso"
ISO_PATH="/home/runner/radiantwave/${ISO_NAME}"
cp -L result/iso/*.iso "${ISO_PATH}"
echo "ISO_NAME=${ISO_NAME}" >> "$GITHUB_ENV"
echo "ISO_PATH=${ISO_PATH}" >> "$GITHUB_ENV"
- name: Copy ISO to fileserver
- name: Rename dev ISO
run: |
scp "${ISO_PATH}" \
nclack@157.245.124.103:/mnt/infrastructure_data/files/images/"${ISO_NAME}"
ISO_DATE=$(date +%Y-%m-%d_%H-%M-%S)
FILENAME="radiantwave-kiosk-iso-dev-${ISO_DATE}.iso"
cp -L result/iso/*.iso "/home/runner/radiantwave/${FILENAME}"
echo "DEV_ISO_FILENAME=${FILENAME}" >> "$GITHUB_ENV"
- name: Copy dev ISO to fileserver
run: |
scp "/home/runner/radiantwave/${DEV_ISO_FILENAME}" \
nclack@157.245.124.103:/mnt/infrastructure_data/files/images/
- name: Cleanup dev ISO
run: rm -f "/home/runner/radiantwave/${DEV_ISO_FILENAME}"
- name: Commit updated flake.lock
run: |
@@ -75,8 +79,3 @@ jobs:
git add flake.lock
git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit"
git push
- name: Cleanup
run: |
rm -rf /home/runner/radiantwave/*
echo "Deleted all files in /home/runner/radiantwave/"