Cleanup filenames and remove closure build, opting for only ISO builds
This commit is contained in:
@@ -45,33 +45,34 @@ jobs:
|
|||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||||
nix flake update radiantwave-dev
|
nix flake update radiantwave-dev
|
||||||
|
|
||||||
# This builds the system closure
|
|
||||||
- name: Build dev VM
|
|
||||||
run: |
|
|
||||||
export NIXPKGS_ALLOW_UNFREE=1
|
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
|
||||||
nix build -L --impure .#nixosConfigurations.radiantwavekiosk-dev.config.system.build.toplevel
|
|
||||||
|
|
||||||
# If the closure builds, it's valid, even if incorrect and something is wrong.
|
|
||||||
# That's why we build the ISO next, even for the dev branch, for testing
|
|
||||||
- name: Build dev ISO
|
- name: Build dev ISO
|
||||||
run: |
|
run: |
|
||||||
export NIXPKGS_ALLOW_UNFREE=1
|
export NIXPKGS_ALLOW_UNFREE=1
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
. /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 /home/runner/radiantwave/radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso
|
|
||||||
|
|
||||||
- name: Commit updated flake.lock
|
nix build -L --impure .#nixosConfigurations.dev-iso.config.system.build.isoImage
|
||||||
run: |
|
|
||||||
git config user.email "ci@radiantwavetech.com"
|
ISO_NAME="radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso"
|
||||||
git config user.name "RadiantWave CI"
|
ISO_PATH="/home/runner/radiantwave/${ISO_NAME}"
|
||||||
git remote set-url origin https://oauth2:${{ secrets.GIT_TOKEN }}@gitea.radiantwavetech.com/RadiantWaveTech/KioskConfig.git
|
|
||||||
git add flake.lock
|
cp -L result/iso/*.iso "${ISO_PATH}"
|
||||||
git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit"
|
|
||||||
git push
|
echo "ISO_NAME=${ISO_NAME}" >> "$GITHUB_ENV"
|
||||||
|
echo "ISO_PATH=${ISO_PATH}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Copy ISO to fileserver
|
- name: Copy ISO to fileserver
|
||||||
run: scp /home/runner/radiantwave/iso/* radiantwave-infra:/mnt/infrastructure_data/files/images/
|
run: |
|
||||||
|
scp "${ISO_PATH}" \
|
||||||
|
radiantwave-infra:/mnt/infrastructure_data/files/images/"${ISO_NAME}"
|
||||||
|
|
||||||
|
- name: Commit updated flake.lock
|
||||||
|
run: |
|
||||||
|
git config user.email "ci@radiantwavetech.com"
|
||||||
|
git config user.name "RadiantWave CI"
|
||||||
|
git remote set-url origin https://oauth2:${{ secrets.GIT_TOKEN }}@gitea.radiantwavetech.com/RadiantWaveTech/KioskConfig.git
|
||||||
|
git add flake.lock
|
||||||
|
git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit"
|
||||||
|
git push
|
||||||
|
|
||||||
- name: Notify
|
- name: Notify
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user