mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Compress images to improve download/upload speed (#1932)
This commit is contained in:
5
.github/actions/load-image/action.yml
vendored
5
.github/actions/load-image/action.yml
vendored
@@ -21,9 +21,6 @@ runs:
|
|||||||
path: /tmp/jupyter/images/
|
path: /tmp/jupyter/images/
|
||||||
- name: Load downloaded image to docker 📥
|
- name: Load downloaded image to docker 📥
|
||||||
run: |
|
run: |
|
||||||
docker load --input /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar
|
zstd --uncompress --stdout --rm /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar.zst | docker load
|
||||||
docker image ls --all
|
docker image ls --all
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Delete the file 🗑️
|
|
||||||
run: rm /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar
|
|
||||||
shell: bash
|
|
||||||
|
@@ -96,11 +96,11 @@ jobs:
|
|||||||
- name: Save image as a tar for later use 💾
|
- name: Save image as a tar for later use 💾
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/jupyter/images/
|
mkdir -p /tmp/jupyter/images/
|
||||||
docker save ${{ env.OWNER }}/${{ inputs.image }} -o /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar
|
docker save ${{ env.OWNER }}/${{ inputs.image }} | zstd > /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar.zst
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Upload image as artifact 💾
|
- name: Upload image as artifact 💾
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.image }}-${{ inputs.platform }}
|
name: ${{ inputs.image }}-${{ inputs.platform }}
|
||||||
path: /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar
|
path: /tmp/jupyter/images/${{ inputs.image }}-${{ inputs.platform }}.tar.zst
|
||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
Reference in New Issue
Block a user