From a4f1a89cefc54dd3c826b0b57f2d089aa93e4458 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Wed, 12 Feb 2025 08:34:42 +0100 Subject: [PATCH] Fetch RaspAP version and set MOTD --- .github/workflows/release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0fc468a..3d9f54cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,19 @@ jobs: # Set Wi-Fi country to prevent RF kill raspi-config nonint do_wifi_country "US" + + # Fetch RaspAP version and set MOTD + RASPAP_VERSION=\$(curl -sL https://install.raspap.com | bash -s -- --version) + echo "\$RASPAP_VERSION" | tee /etc/motd + EOF + } && + chmod +x stage-raspap/package-raspap/00-run-chroot.sh && + { + cat > stage-raspap/prerun.sh <<-EOF + #!/bin/bash -e + if [ ! -d "\${ROOTFS_DIR}" ]; then + copy_previous + fi EOF } && chmod +x stage-raspap/package-raspap/00-run-chroot.sh && @@ -47,14 +60,6 @@ jobs: } && chmod +x stage-raspap/prerun.sh - - name: Increase swap - run: | - sudo fallocate -l 4G /swapfile - sudo chmod 600 /swapfile - sudo mkswap /swapfile - sudo swapon /swapfile - free -h - - name: Build RaspAP Image id: build uses: usimd/pi-gen-action@v1