From 7e52de61a8f4763c75d362ca09fb6225ce7ff2ed Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 1 Aug 2024 21:15:53 +0300 Subject: [PATCH] add release mechanism --- .github/build-iso | 1 + .github/push-iso | 1 - .github/release-iso | 1 + .github/workflows/{push-iso.yml => release-iso.yml} | 5 ++++- build.sh | 6 +++++- info.sh | 5 +++-- release.sh | 2 ++ 7 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .github/build-iso delete mode 100644 .github/push-iso create mode 100644 .github/release-iso rename .github/workflows/{push-iso.yml => release-iso.yml} (91%) create mode 100755 release.sh diff --git a/.github/build-iso b/.github/build-iso new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.github/build-iso @@ -0,0 +1 @@ +1 diff --git a/.github/push-iso b/.github/push-iso deleted file mode 100644 index f04c001..0000000 --- a/.github/push-iso +++ /dev/null @@ -1 +0,0 @@ -29 diff --git a/.github/release-iso b/.github/release-iso new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.github/release-iso @@ -0,0 +1 @@ +1 diff --git a/.github/workflows/push-iso.yml b/.github/workflows/release-iso.yml similarity index 91% rename from .github/workflows/push-iso.yml rename to .github/workflows/release-iso.yml index be76947..7ecac27 100644 --- a/.github/workflows/push-iso.yml +++ b/.github/workflows/release-iso.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - '.github/push-iso' + - '.github/release-iso' jobs: build: @@ -38,3 +38,6 @@ jobs: - name: Build ISO run: ./build.sh + + - name: Release ISO + run: ./release.sh diff --git a/build.sh b/build.sh index 73cb0ba..88348bf 100755 --- a/build.sh +++ b/build.sh @@ -82,5 +82,9 @@ xorriso \ -append_partition 2 0xef "$LIVE_BOOT_PATH/efiboot.img" \ -J -joliet-long \ -no-emul-boot \ - -o "./output/$ISO_IMAGE" \ + -o "./output/$ISO_IMAGE".iso \ "$LIVE_BOOT_DATA_PATH" + +# Generate an integrity sum +touch "./output/$ISO_IMAGE".md5 +md5sum "./output/$ISO_IMAGE".iso > "./output/$ISO_IMAGE".md5 diff --git a/info.sh b/info.sh index 02a95e1..4a38d8a 100755 --- a/info.sh +++ b/info.sh @@ -5,8 +5,9 @@ export LIVE_BOOT_DATA_PATH="$LIVE_BOOT_PATH/data" export LIVE_BOOT_LIVE_PATH="$LIVE_BOOT_DATA_PATH/live" export ROOTFS_PATH="$LIVE_BOOT_PATH/rootfs" export LIVE_HOSTNAME="pikaos" +export ISO_DISTNAME="PikaOS" export ISO_ARCH="amd64-v3" export ISO_RELEASE="4.0" export ISO_DESKTOP="GNOME" -export ISO_IMAGE="PikaOS-$DESKTOP-$RELEASE-$ARCH-$(date '+%y.%m.%d')" -export LIVE_BOOT_VOLUME_NAME="PikaOS-$DESKTOP-$RELEASE-$ARCH" +export ISO_IMAGE="$ISO_DISTNAME-$DESKTOP-$RELEASE-$ARCH-$(date '+%y.%m.%d')" +export LIVE_BOOT_VOLUME_NAME="$ISO_DISTNAME-$DESKTOP-$RELEASE-$ARCH" diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..8392d8c --- /dev/null +++ b/release.sh @@ -0,0 +1,2 @@ +# send the output image to ISO server +rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/pikaiso/