add release mechanism

This commit is contained in:
Ward from fusion-voyager-3 2024-08-01 21:15:53 +03:00
parent 5ac8d62e9c
commit 7e52de61a8
7 changed files with 16 additions and 5 deletions

1
.github/build-iso vendored Normal file
View File

@ -0,0 +1 @@
1

1
.github/push-iso vendored
View File

@ -1 +0,0 @@
29

1
.github/release-iso vendored Normal file
View File

@ -0,0 +1 @@
1

View File

@ -5,7 +5,7 @@ on:
branches: branches:
- main - main
paths: paths:
- '.github/push-iso' - '.github/release-iso'
jobs: jobs:
build: build:
@ -38,3 +38,6 @@ jobs:
- name: Build ISO - name: Build ISO
run: ./build.sh run: ./build.sh
- name: Release ISO
run: ./release.sh

View File

@ -82,5 +82,9 @@ xorriso \
-append_partition 2 0xef "$LIVE_BOOT_PATH/efiboot.img" \ -append_partition 2 0xef "$LIVE_BOOT_PATH/efiboot.img" \
-J -joliet-long \ -J -joliet-long \
-no-emul-boot \ -no-emul-boot \
-o "./output/$ISO_IMAGE" \ -o "./output/$ISO_IMAGE".iso \
"$LIVE_BOOT_DATA_PATH" "$LIVE_BOOT_DATA_PATH"
# Generate an integrity sum
touch "./output/$ISO_IMAGE".md5
md5sum "./output/$ISO_IMAGE".iso > "./output/$ISO_IMAGE".md5

View File

@ -5,8 +5,9 @@ export LIVE_BOOT_DATA_PATH="$LIVE_BOOT_PATH/data"
export LIVE_BOOT_LIVE_PATH="$LIVE_BOOT_DATA_PATH/live" export LIVE_BOOT_LIVE_PATH="$LIVE_BOOT_DATA_PATH/live"
export ROOTFS_PATH="$LIVE_BOOT_PATH/rootfs" export ROOTFS_PATH="$LIVE_BOOT_PATH/rootfs"
export LIVE_HOSTNAME="pikaos" export LIVE_HOSTNAME="pikaos"
export ISO_DISTNAME="PikaOS"
export ISO_ARCH="amd64-v3" export ISO_ARCH="amd64-v3"
export ISO_RELEASE="4.0" export ISO_RELEASE="4.0"
export ISO_DESKTOP="GNOME" export ISO_DESKTOP="GNOME"
export ISO_IMAGE="PikaOS-$DESKTOP-$RELEASE-$ARCH-$(date '+%y.%m.%d')" export ISO_IMAGE="$ISO_DISTNAME-$DESKTOP-$RELEASE-$ARCH-$(date '+%y.%m.%d')"
export LIVE_BOOT_VOLUME_NAME="PikaOS-$DESKTOP-$RELEASE-$ARCH" export LIVE_BOOT_VOLUME_NAME="$ISO_DISTNAME-$DESKTOP-$RELEASE-$ARCH"

2
release.sh Executable file
View File

@ -0,0 +1,2 @@
# send the output image to ISO server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/pikaiso/