Skip to content

Commit

Permalink
action: Fix usage of CI images
Browse files Browse the repository at this point in the history
Currently, the CI LVH VM images usage is broken in the action. For
example, "kind-ci:5.15-20230925.121928" cannot be used due to:

    cp: can't stat '/data/images/kind-ci_5.15.qcow2.zst': No such file or directory

This is because the actual image name doesn't contain "-ci". Fix this,
by removing the "-ci" suffix from the image name derivation.

Signed-off-by: Martynas Pumputis <[email protected]>
  • Loading branch information
brb authored and kkourt committed Sep 27, 2023
1 parent ab82fb1 commit 2b683d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ runs:
if: ${{ inputs.provision == 'true' }}
id: derive-image-name
shell: bash
run: echo "image-name=${{ inputs.image }}_$(echo ${{ inputs.image-version }} | sed 's/\(.*\)\-\(.*\)/\1/g')" >> $GITHUB_OUTPUT
run: echo "image-name=$(echo ${{ inputs.image }} | sed 's/\-ci//g')_$(echo ${{ inputs.image-version }} | sed 's/\(.*\)\-\(.*\)/\1/g')" >> $GITHUB_OUTPUT

- name: Fetch VM image
if: ${{ inputs.provision == 'true' && steps.cache-lvh-image.outputs.cache-hit != 'true' }}
Expand Down

0 comments on commit 2b683d0

Please sign in to comment.