Skip to content

Commit

Permalink
Add testing matrix for different base images
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Jan 20, 2025
1 parent dea28d6 commit 96b57ba
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: docker build images

on:
pull_request:
push:
branches:
- 'main'

jobs:
dockerImage:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ linux/amd64 ]
base_image: [ ubuntu:24.04, debian:12, alpine:3.19, opensuse/leap:15.6, rockylinux:9 ]
steps:
- uses: actions/checkout@v4
- name: Docker Metadata action
id: meta
uses: docker/[email protected]
with:
images: ttl.sh/kairos-${{ matrix.base_image }}
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build the docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: ${{ matrix.platform }}
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args:
BASE_IMAGE: ${{ matrix.base_image }}

0 comments on commit 96b57ba

Please sign in to comment.