Repository navigation
chore: rodar CI apenas quando os arquivos relevantes mudam #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci-image | |
| # Validates the PHP image build (no push) — runs ONLY when the image sources | |
| # change. Publishing to DockerHub stays manual via the publish workflow. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'php/**' | |
| - '.github/workflows/ci-image.yml' | |
| pull_request: | |
| paths: | |
| - 'php/**' | |
| - '.github/workflows/ci-image.yml' | |
| jobs: | |
| build-prod: | |
| name: build prod image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build the prod target (no push) | |
| run: docker build --target prod ./php |