compress published images
Some checks failed
Build images / Build images (push) Failing after 1h43m31s
Some checks failed
Build images / Build images (push) Failing after 1h43m31s
This commit is contained in:
parent
31c56b594a
commit
474786d796
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -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
5
compress-images.sh
Executable 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
0
stage4/98-default-wallpaper/00-run.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user