Skip to content

WIP: parametrize vm-kernel job for workflow_dispatch #54

WIP: parametrize vm-kernel job for workflow_dispatch

WIP: parametrize vm-kernel job for workflow_dispatch #54

Workflow file for this run

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:

Check failure on line 14 in .github/workflows/vm-kernel.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/vm-kernel.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
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 }}