-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (48 loc) · 1.47 KB
/
vm-kernel.yaml
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
name: vm-kernel
on:
schedule:
- cron: '42 4 * * 2' # run once a week
inputs:
push: true
workflow_dispatch: # adds ability to run this manually
inputs:
push:
description: 'Push to Docker Hub'
required: false
default: 'false'
tag:
description: 'Tag to use for Docker image'
required: false
default: '' ???
env:
VM_KERNEL_IMAGE: "neondatabase/vm-kernel"
VM_KERNEL_VERSION: "5.15.80"
jobs:
vm-kernel:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: docker - install qemu
uses: docker/setup-qemu-action@v2
- name: docker - setup buildx
uses: docker/setup-buildx-action@v2
- name: login to docker hub
uses: docker/login-action@v2
with:
username: ${{ secrets.NEON_DOCKERHUB_USERNAME }}
password: ${{ secrets.NEON_DOCKERHUB_PASSWORD }}
- name: build linux kernel
uses: docker/build-push-action@v3
with:
build-args: KERNEL_VERSION=${{ env.VM_KERNEL_VERSION }}
context: neonvm/hack
platforms: linux/amd64
push: ${{ inputs.push }}
pull: true
no-cache: true
file: neonvm/hack/Dockerfile.kernel-builder
# if inputs.tag is set, then
tags: ${{ env.VM_KERNEL_IMAGE }}:${{ inputs.tag }}
# else
tags: ${{ env.VM_KERNEL_IMAGE }}:${{ env.VM_KERNEL_VERSION }}