summaryrefslogtreecommitdiff
path: root/.github/workflows/docker-code-quality.yml
blob: e96baf2818fc8e600ac44a05f9e727547734d2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Docker Code Quality

on:
  pull_request:
    paths:
    - '.docker/**'
  # Allow manual triggering
  workflow_dispatch:
  # Allow other workflows (e.g. Publish) to invoke this one.
  workflow_call:


permissions:
  contents: read


jobs:
  check:
    name: Check Docker image ${{ matrix.image.name }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        image:
        - name: app
          dockerfile: ./.docker/app/Dockerfile
        - name: web-nginx
          dockerfile: ./.docker/web-nginx/Dockerfile

    steps:
    - name: Check out code
      uses: actions/checkout@v5

    - name: Validate configuration
      uses: docker/build-push-action@v6
      with:
        context: .
        file: ${{ matrix.image.dockerfile }}
        call: check