Skip to content

refactor: Consolidate to single universal Dockerfile with BUILD_ENV argument #10

refactor: Consolidate to single universal Dockerfile with BUILD_ENV argument

refactor: Consolidate to single universal Dockerfile with BUILD_ENV argument #10

Workflow file for this run

name: Docker Validation
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'Dockerfile*'
- 'docker-compose*.yml'
- 'docker-compose*.yaml'
- '.github/workflows/docker-validate.yml'
pull_request:
paths:
- 'Dockerfile*'
- 'docker-compose*.yml'
- 'docker-compose*.yaml'
- '.github/workflows/docker-validate.yml'
jobs:
validate-dockerfiles:
name: Validate Docker Configuration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Validate docker-compose.yaml syntax
run: |
docker compose config
echo "✓ docker-compose.yaml syntax validation passed"
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
failure-threshold: warning
- name: Summary
run: |
echo "✅ Docker configuration validation complete"
echo ""
echo "Note: Full image builds are not performed in this workflow to save CI resources."
echo "Production builds are tested during Cloudflare Pages deployments."