compress published images
Some checks failed
Build images / Build images (push) Failing after 1h43m31s

This commit is contained in:
Cory Sanin 2025-05-08 21:37:01 -05:00
parent 31c56b594a
commit 474786d796
3 changed files with 12 additions and 3 deletions

View File

@ -13,7 +13,7 @@ jobs:
build_images:
name: Build images
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 120
strategy:
fail-fast: true
env:
@ -46,13 +46,17 @@ jobs:
sudo mv deploy/*-arm64-standalone.img deploy/showpieceos-arm64-standalone.img &&
sudo mv deploy/*-arm64-client.img deploy/showpieceos-arm64-client.img
- name: Compress images
if: startsWith(github.ref, 'refs/tags/v')
run: ./compress-images.sh
- name: Publish client
if: startsWith(github.ref, 'refs/tags/v')
uses: https://github.com/softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: deploy/*-client.img
files: deploy/*-client.img.gz
- name: Publish standalone
if: startsWith(github.ref, 'refs/tags/v')
@ -60,5 +64,5 @@ jobs:
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: deploy/*-standalone.img
files: deploy/*-standalone.img.gz

5
compress-images.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
for img in "deploy/"*.img; do
gzip -4 -v -k "$img"
done

0
stage4/98-default-wallpaper/00-run.sh Normal file → Executable file
View File