Skip to content

Commit

Permalink
Add variant build to test matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Feb 3, 2025
1 parent 8786063 commit 9a8221f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,23 @@ concurrency:

jobs:
testing_build_matrix:
name: ${{ matrix.platform }} - ${{ matrix.base_image }}
name: ${{ matrix.platform }} - ${{ matrix.base_image }} - ${{ matrix.variant }} - ${{ matrix.kubernetes_provider }}
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
strategy:
matrix:
variant: [ "core" ]
kubernetes_provider: [ "k3s"]
platform: [ "linux/amd64", "linux/arm64" ]
base_image: [ "ubuntu:20.04", "ubuntu:24.04", "debian:12", "alpine:3.19", "alpine:3.21", "opensuse/leap:15.6", "opensuse/tumbleweed", "rockylinux:9" ]
include:
- platform: "linux/amd64"
base_image: "ubuntu:22.04"
variant: "standard"
kubernetes_provider: "k3s"
- platform: "linux/amd64"
base_image: "ubuntu:22.04"
variant: "standard"
kubernetes_provider: "k0s"
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
Expand All @@ -35,4 +46,6 @@ jobs:
push: false
tags: kairos-${{ matrix.base_image }}
build-args: |
BASE_IMAGE=${{ matrix.base_image }}
BASE_IMAGE=${{ matrix.base_image }}
VARIANT=${{ matrix.variant }}
KUBERNETES_PROVIDER=${{ matrix.kubernetes_provider }}
8 changes: 4 additions & 4 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ FROM ${BASE_IMAGE}
ARG VARIANT=core
ARG MODEL=generic
ARG TRUSTED_BOOT=false
ARG K3S_PROVIDER=k3s
ARG KUBERNETES_PROVIDER=k3s

COPY --from=kairos-init /kairos-init /kairos-init
RUN /kairos-init -l debug -s install -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${K3S_PROVIDER}"
RUN /kairos-init -l debug -s init -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${K3S_PROVIDER}"
RUN /kairos-init -l debug --validate -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${K3S_PROVIDER}"
RUN /kairos-init -l debug -s install -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${KUBERNETES_PROVIDER}"
RUN /kairos-init -l debug -s init -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${KUBERNETES_PROVIDER}"
RUN /kairos-init -l debug --validate -m "${MODEL}" -v "${VARIANT}" -t "${TRUSTED_BOOT}" -k "${KUBERNETES_PROVIDER}"
RUN rm /kairos-init

0 comments on commit 9a8221f

Please sign in to comment.