diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 000000000000..a65a04322bfa --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,48 @@ +name: Docker + +on: + push: + branches-ignore: + - 'backport**' + - 'dependabot**' + + pull_request: + paths: + - 'docker/**' + + # 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 + + docker: + strategy: + fail-fast: false + matrix: + include: + - name: alpine-normal + + - name: alpine-small + + - name: ubuntu-normal + + - 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