Skip to content

Commit a949485

Browse files
author
Pablo Mendez
committed
compress unattended
1 parent c146bc3 commit a949485

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ jobs:
111111
112112
- name: Check Ubuntu ISO unattended
113113
run: |
114-
ls -lrt images/Dappnode-ubuntu-*.iso
114+
ls -lrt images/Dappnode-ubuntu-*-unattended.iso.xz
115+
116+
- name: Compress Ubuntu Dappnode unattended ISO
117+
run: |
118+
file=$(ls images/Dappnode-*-ubuntu-*-unattended.iso)
119+
xz -T0 -z -v "$file"
115120
116121
- name: Set Ubuntu Dappnode unattended ISO name
117122
run: |
@@ -120,6 +125,8 @@ jobs:
120125
core_filename="Dappnode-${CORE_VERSION}-ubuntu-${filename#Dappnode-ubuntu-}" # Modify the filename using CORE_VERSION
121126
unattended_filename="${core_filename/%.iso/-unattended.iso}" # Replace .iso with -unattended.iso
122127
sudo cp "$file" "images/$unattended_filename"
128+
# Compress the new file as well
129+
xz -T0 -z -v "images/$unattended_filename"
123130
124131
- name: Create dappnode_profile.sh
125132
run: |
@@ -140,10 +147,10 @@ jobs:
140147
SHASUM_DEBIAN_UNATTENDED=$(shasum -a 256 $file)
141148
echo "::set-output name=SHASUM_DEBIAN_UNATTENDED::$SHASUM_DEBIAN_UNATTENDED"
142149
143-
- name: Get SHA-256 Debian unattended
150+
- name: Get SHA-256 Ubuntu unattended
144151
id: shasum-ubuntu-unattended
145152
run: |
146-
file=$(find . -type f -name 'Dappnode-ubuntu-*unattended.iso')
153+
file=$(find . -type f -name 'Dappnode-ubuntu-*unattended.iso.xz')
147154
SHASUM_UBUNTU_UNATTENDED=$(shasum -a 256 $file)
148155
echo "::set-output name=SHASUM_UBUNTU_UNATTENDED::$SHASUM_UBUNTU_UNATTENDED"
149156
@@ -170,7 +177,7 @@ jobs:
170177
files: |
171178
./images/Dappnode-*-debian-*-attended.iso
172179
./images/Dappnode-*-debian-*-unattended.iso
173-
./images/Dappnode-*-ubuntu-*-unattended.iso
180+
./images/Dappnode-*-ubuntu-*-unattended.iso.xz
174181
./scripts/dappnode_install*.sh
175182
./scripts/dappnode_uninstall*.sh
176183
dappnode_profile.sh

0 commit comments

Comments
 (0)