Configure CI/CD workflows to trigger precisely based on relevant file path changes. This minimizes unnecessary builds and tests while ensuring all required workflows run when dependencies are modified.
Configure CI/CD workflows to trigger precisely based on relevant file path changes. This minimizes unnecessary builds and tests while ensuring all required workflows run when dependencies are modified.
For component-specific workflows:
# Example for a web application workflow
name: Build & Publish JWA Docker image
on:
push:
branches:
- master
- v*-branch
paths:
- components/crud-web-apps/jupyter/** # Component code
- components/crud-web-apps/common/** # Shared dependencies
For manifest-related workflows:
# For manifest testing, specify manifest paths only
name: Build Profile Controller manifests
on:
pull_request:
paths:
- components/profile-controller/config/** # Only manifest changes
Centralize build logic in Makefiles instead of duplicating in GitHub Actions. This allows workflows to simply call make targets, making pipelines more maintainable and consistent across environments.
Enter the URL of a public GitHub repository