diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..78cdff6 --- /dev/null +++ b/.github/workflows/test.yml @@ -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/metadata-action@v5.6.1 + 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 }} \ No newline at end of file