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