Skip to content

Commit 143fd1f

Browse files
committed
Test3
1 parent 0d57d77 commit 143fd1f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,22 @@ 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_FILENAME=${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}" >> "$GITHUB_ENV"
40-
4138
- uses: actions/cache@v4
4239
with:
4340
path: /home/runner/.cache/image-create
44-
key: ${{ env.IMAGE_FILENAME }}-${{ github.head_ref || github.ref_name }}
41+
key: ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
4542
restore-keys: |
46-
${{ env.IMAGE_FILENAME }}-${{ github.head_ref || github.ref_name }}
47-
${{ env.IMAGE_FILENAME }}
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 }}
4845
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}
4946
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+
ls -lah
5152
uv run disk-image-create vm block-device-efi ${{ steps.split.outputs._0 }} kubernetes
52-
mv image.qcow2 "${IMAGE_FILENAME}.qcow2"
53+
# mv image.qcow2 "${IMAGE_NAME}.qcow2"
5354
env:
5455
ELEMENTS_PATH: ${{ github.workspace }}/elements
5556
DIB_RELEASE: ${{ steps.split.outputs._1 }}
@@ -59,13 +60,13 @@ jobs:
5960
- name: Publish artifact
6061
uses: actions/upload-artifact@v4
6162
with:
62-
name: ${{ env.IMAGE_FILENAME }}
63-
path: ${{ env.IMAGE_FILENAME }}.qcow2
63+
name: ${{ env.IMAGE_NAME }}
64+
path: ${{ env.IMAGE_NAME }}.qcow2
6465
if-no-files-found: error
6566
retention-days: 7
6667

6768
- name: Upload image to release
6869
uses: softprops/action-gh-release@v1
6970
if: github.ref_type == 'tag'
7071
with:
71-
files: ${{ env.IMAGE_FILENAME }}.qcow2
72+
files: ${{ env.IMAGE_NAME }}.qcow2

0 commit comments

Comments
 (0)