Skip to content

Commit

Permalink
action: Use docker image pull support
Browse files Browse the repository at this point in the history
Replace the open-coded image pull and decompression with native OCI
image support directly in LVH.

Signed-off-by: Joe Stringer <[email protected]>
  • Loading branch information
joestringer committed Jan 9, 2024
1 parent b0bf7f1 commit 218de8b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,7 @@ runs:
if: ${{ inputs.provision == 'true' && steps.cache-lvh-image.outputs.cache-hit != 'true' }}
shell: bash
run: |
sudo mkdir /_images; sudo chmod 777 /_images
docker run -v /_images:/mnt/images quay.io/lvh-images/${{ inputs.image }}:${{ inputs.image-version }} cp /data/images/${{ steps.derive-image-name.outputs.image-name }}.qcow2.zst /mnt/images
- name: Prepare VM image
if: ${{ inputs.provision == 'true' }}
shell: bash
run: |
cd /_images
zstd -d ${{ steps.derive-image-name.outputs.image-name }}.qcow2.zst -o ${{ inputs.test-name }}.qcow2
/bin/lvh images pull --cache quay.io/lvh-images/${{ inputs.image }}:${{ inputs.image-version }} -d "/"
- name: Start VM
if: ${{ inputs.provision == 'true' }}
Expand Down

0 comments on commit 218de8b

Please sign in to comment.