Browse Source

Disable GZIP.

tags/v4.0.0-beta.1
Luigi Freitas Cruz 4 years ago
parent
commit
65d65a10d2
3 changed files with 4 additions and 5 deletions
  1. +1
    -1
      .github/workflows/release.yml
  2. +1
    -1
      .github/workflows/validate.yml
  3. +2
    -3
      builder/export-image/04-finalise/01-run.sh

+ 1
- 1
.github/workflows/release.yml View File

@@ -29,7 +29,7 @@ jobs:
working-directory: ${{ env.working-directory }}
run: |
bash build-docker.sh
echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename)
echo ::set-output name=filename::$(ls deploy/*.img.xz | xargs -n 1 basename)
- name: Fix Permissions
id: fix_perm_filename
run: |


+ 1
- 1
.github/workflows/validate.yml View File

@@ -26,7 +26,7 @@ jobs:
working-directory: ${{ env.working-directory }}
run: |
bash build-docker.sh
echo ::set-output name=filename::$(ls deploy/*.tar.xz | xargs -n 1 basename)
echo ::set-output name=filename::$(ls deploy/*.img.xz | xargs -n 1 basename)
- name: Fix Permissions
id: fix_perm_filename
run: |


+ 2
- 3
builder/export-image/04-finalise/01-run.sh View File

@@ -86,13 +86,12 @@ unmount_image "${IMG_FILE}"

mkdir -p "${DEPLOY_DIR}"

rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.tar.xz"
rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.img.xz"
rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"

if [ "${DEPLOY_ZIP}" == "1" ]; then
pushd "${STAGE_WORK_DIR}" > /dev/null
tar -cJf "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.tar.xz" \
"$(basename "${IMG_FILE}")"
xz -c "$(basename "${IMG_FILE}")" > "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.img.xz"
popd > /dev/null
rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
else


Loading…
Cancel
Save