Skip to content

Commit e777bed

Browse files
committed
Test4
1 parent 143fd1f commit e777bed

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,27 @@ jobs:
3535
- run: sudo chown root /bin/tar && sudo chmod u+s /bin/tar
3636
if: ${{ steps.split.outputs._0 == 'ubuntu' }}
3737

38+
- name: Set image filename env var
39+
run: echo "IMAGE_NAME=${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}" >> "$GITHUB_ENV"
40+
3841
- uses: actions/cache@v4
3942
with:
4043
path: /home/runner/.cache/image-create
41-
key: ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
44+
key: ${{ env.IMAGE_NAME }}-${{ github.head_ref || github.ref_name }}
4245
restore-keys: |
43-
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
44-
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}
46+
${{ env.IMAGE_NAME }}-${{ github.head_ref || github.ref_name }}
47+
${{ env.IMAGE_NAME }}
4548
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}
4649
47-
- name: Set image filename env var
48-
run: echo "IMAGE_NAME=${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}" >> "$GITHUB_ENV"
49-
5050
- run: |
51+
echo $PWD
52+
id
5153
ls -lah
52-
uv run disk-image-create vm block-device-efi ${{ steps.split.outputs._0 }} kubernetes
53-
# mv image.qcow2 "${IMAGE_NAME}.qcow2"
54+
ls -lah /home/runner
55+
ls -lah /home/runner/.cache
56+
ls -lah /home/runner/.cache/image-create
57+
ls -lah /home/runner/.cache/dib
58+
uv run disk-image-create -o "${IMAGE_NAME}.qcow2" vm block-device-efi ${{ steps.split.outputs._0 }} kubernetes
5459
env:
5560
ELEMENTS_PATH: ${{ github.workspace }}/elements
5661
DIB_RELEASE: ${{ steps.split.outputs._1 }}

0 commit comments

Comments
 (0)