mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 23:12: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/
|
||||
- name: Load downloaded image to docker 📥
|
||||
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
|
||||
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 💾
|
||||
run: |
|
||||
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
|
||||
- name: Upload image as artifact 💾
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
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
|
||||
|
Reference in New Issue
Block a user