Skip to content

Commit eeffe76

Browse files
committed
Update matrix values, add step to upload artifact to release
Signed-off-by: Jonathan Haylett <[email protected]>
1 parent c70f439 commit eeffe76

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,29 @@ jobs:
1212
strategy:
1313
matrix:
1414
os:
15-
- ubuntu/jammy
16-
- rocky-container/9
15+
- ubuntu/noble
1716
version:
18-
- 1.27.15
19-
- 1.28.11
20-
- 1.29.6
21-
- 1.30.2
22-
- 1.31.1
17+
- 1.33.1
2318
steps:
2419
- uses: actions/checkout@v4
20+
2521
- uses: astral-sh/setup-uv@v5
2622
with:
2723
enable-cache: true
24+
2825
- run: uv sync
26+
2927
- run: sudo apt-get install -y $(uv run bindep -b)
28+
3029
- uses: winterjung/split@7f51d99e7cc1f147f6f99be75acf5e641930af88 # v2.1.0
3130
id: split
3231
with:
3332
msg: ${{ matrix.os }}
3433
separator: "/"
34+
3535
- run: sudo chown root /bin/tar && sudo chmod u+s /bin/tar
3636
if: ${{ steps.split.outputs._0 == 'ubuntu' }}
37+
3738
- uses: actions/cache@v4
3839
with:
3940
path: /home/runner/.cache/image-create
@@ -42,15 +43,24 @@ jobs:
4243
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
4344
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}
4445
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}
46+
4547
- run: uv run disk-image-create vm block-device-efi ${{ steps.split.outputs._0 }} kubernetes
4648
env:
4749
ELEMENTS_PATH: ${{ github.workspace }}/elements
4850
DIB_RELEASE: ${{ steps.split.outputs._1 }}
4951
DIB_KUBERNETES_VERSION: ${{ matrix.version }}
5052
DIB_MIN_TMPFS: "4"
51-
- uses: actions/upload-artifact@v4
53+
54+
- name: Publish artifacts
55+
uses: actions/upload-artifact@v4
5256
with:
5357
name: ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}
5458
path: image.qcow2
5559
if-no-files-found: error
5660
retention-days: 7
61+
62+
- name: Upload image to release
63+
uses: softprops/action-gh-release@v1
64+
if: github.ref_type == 'tag'
65+
with:
66+
files: image.qcow2

0 commit comments

Comments
 (0)