From 14c74159b35ca7a0f35b7d80390c88a0bcff5266 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 5 Oct 2024 15:58:06 +0200 Subject: [PATCH] CI: add a workflow to build docker/ images --- .github/workflows/docker.yml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 000000000000..59dabdb3d477 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,47 @@ +name: Docker + +on: + pull_request: + paths: + - 'docker/**' + - '.github/workflows/docker.yml' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + + docker_builds: + + strategy: + fail-fast: false + matrix: + include: + - name: alpine-small + + - name: alpine-normal + + - name: ubuntu-small + + - name: ubuntu-full + + name: ${{ matrix.name }} + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + + - name: Build + shell: bash -l {0} + run: | + cd docker/${{ matrix.name }} + ./build.sh --platform linux/amd64