Skip to content

Kernel 6.6.20

Kernel 6.6.20 #140

Workflow file for this run

name: Build kernel from pull request
on:
pull_request:
branches:
- master
env:
GCS_BUCKET: images.metal-pod.io
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
kernel: ["6.6.20"]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Build project # This would actually build your project, using zip for an example artifact
run: |
docker build --build-arg KERNEL_MAJOR="v6.x" \
--build-arg KERNEL_VERSION=${{ matrix.kernel }} \
--build-arg KERNEL_SERIES="mainline" \
--tag metal-stack/kernel .
docker export $(docker create metal-stack/kernel /dev/null) > kernel.tar
tar -xf kernel.tar metal-kernel
cp metal-kernel metal-kernel-${{ matrix.kernel }}-pr-${GITHUB_HEAD_REF##*/}
- name: Upload kernel to GCS
run: gsutil -m -h "Cache-Control:no-store" cp -r metal-kernel gs://$GCS_BUCKET/metal-kernel/pull_requests/metal-kernel-${{ matrix.kernel }}