-
Notifications
You must be signed in to change notification settings - Fork 10
95 lines (92 loc) · 2.19 KB
/
kernel-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Build and release kernel images
on:
pull_request:
paths:
- 'kernel/**'
branches: [main]
push:
paths:
- 'kernel/**'
branches: [main]
defaults:
run:
working-directory: kernel
jobs:
build-firecracker:
if: github.event_name != 'push'
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
version: [ 4.19.215, 5.10.77 ]
env:
FC_KERNEL_VERSIONS: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Build kernel
run: make build-fc
build-cloudhypervisor:
if: github.event_name != 'push'
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
version: [ 5.12 ]
env:
CH_KERNEL_VERSIONS: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Build kernel
run: make build-ch
release-firecracker:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
version: [ 4.19.215, 5.10.77 ]
env:
FC_KERNEL_VERSIONS: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Login to container registry
uses: docker/login-action@v1.10.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
make build-fc
make push-fc
release-cloudhypervisor:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
version: [ 5.12 ]
env:
CH_KERNEL_VERSIONS: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Login to container registry
uses: docker/login-action@v1.10.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
make build-ch
make push-ch