From b1916f4733a93e0ea6d6b13c696b8b2e55200a16 Mon Sep 17 00:00:00 2001 From: "k.koide" Date: Fri, 29 Mar 2024 14:20:09 +0900 Subject: [PATCH] multi-distro CI --- .github/workflows/build.yml | 2 ++ docker/Dockerfile.gcc | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8fef99..955858b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + DISTRO: [jammy] TOOLCHAIN: [gcc, llvm] steps: @@ -35,5 +36,6 @@ jobs: uses: docker/build-push-action@v2 with: file: ${{github.workspace}}/docker/Dockerfile.${{ matrix.TOOLCHAIN }} + build-args: BASE_IMAGE=ubuntu:${{ matrix.DISTRO }} context: . push: false diff --git a/docker/Dockerfile.gcc b/docker/Dockerfile.gcc index 830b5c5..f683b0e 100644 --- a/docker/Dockerfile.gcc +++ b/docker/Dockerfile.gcc @@ -1,4 +1,6 @@ -FROM ubuntu:jammy +ARG BASE_IMAGE + +FROM ${BASE_IMAGE} ENV DEBIAN_FRONTEND=noninteractive