forked from images/live-iso-gnome
add release mechanism
This commit is contained in:
parent
5ac8d62e9c
commit
7e52de61a8
1
.github/build-iso
vendored
Normal file
1
.github/build-iso
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
1
.github/push-iso
vendored
1
.github/push-iso
vendored
@ -1 +0,0 @@
|
|||||||
29
|
|
1
.github/release-iso
vendored
Normal file
1
.github/release-iso
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
@ -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
|
6
build.sh
6
build.sh
@ -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
|
||||||
|
5
info.sh
5
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 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
2
release.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
# send the output image to ISO server
|
||||||
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/pikaiso/
|
Loading…
Reference in New Issue
Block a user