tt-rss/.github/workflows/docker-code-quality.yml
supahgreg 72085a2176
Add a 'Docker Code Quality' GitHub workflow.
Initially just checks that the 'Dockerfile' files are valid.
2025-10-11 03:54:36 +00:00

40 lines
789 B
YAML

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