mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-25 23:01:26 +01:00
40 lines
789 B
YAML
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
|