Skip to content

Commit c70f439

Browse files
authored
Merge pull request vexxhost#13 from vexxhost/switch-to-gha
Switch to GHA
2 parents 4d7c00a + a880bf1 commit c70f439

File tree

17 files changed

+423
-299
lines changed

17 files changed

+423
-299
lines changed

.github/workflows/ci.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: depot-ubuntu-24.04
12+
strategy:
13+
matrix:
14+
os:
15+
- ubuntu/jammy
16+
- rocky-container/9
17+
version:
18+
- 1.27.15
19+
- 1.28.11
20+
- 1.29.6
21+
- 1.30.2
22+
- 1.31.1
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: astral-sh/setup-uv@v5
26+
with:
27+
enable-cache: true
28+
- run: uv sync
29+
- run: sudo apt-get install -y $(uv run bindep -b)
30+
- uses: winterjung/split@7f51d99e7cc1f147f6f99be75acf5e641930af88 # v2.1.0
31+
id: split
32+
with:
33+
msg: ${{ matrix.os }}
34+
separator: "/"
35+
- run: sudo chown root /bin/tar && sudo chmod u+s /bin/tar
36+
if: ${{ steps.split.outputs._0 == 'ubuntu' }}
37+
- uses: actions/cache@v4
38+
with:
39+
path: /home/runner/.cache/image-create
40+
key: ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
41+
restore-keys: |
42+
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}-${{ github.head_ref || github.ref_name }}
43+
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}
44+
${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}
45+
- run: uv run disk-image-create vm block-device-efi ${{ steps.split.outputs._0 }} kubernetes
46+
env:
47+
ELEMENTS_PATH: ${{ github.workspace }}/elements
48+
DIB_RELEASE: ${{ steps.split.outputs._1 }}
49+
DIB_KUBERNETES_VERSION: ${{ matrix.version }}
50+
DIB_MIN_TMPFS: "4"
51+
- uses: actions/upload-artifact@v4
52+
with:
53+
name: ${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ matrix.version }}
54+
path: image.qcow2
55+
if-no-files-found: error
56+
retention-days: 7

ci/build-jobs.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

images/rockylinux/9/1-27-15.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

images/rockylinux/9/1-28-11.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

images/rockylinux/9/1-29-6.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

images/rockylinux/9/1-30-2.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

images/ubuntu/jammy/1-27-15.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

images/ubuntu/jammy/1-28-11.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

images/ubuntu/jammy/1-29-6.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

images/ubuntu/jammy/1-30-2.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)