Versionhallinta (Git) on perusta, jolle CI/CD rakentuu — repositorion koodimuutokset laukaisevat putkistoja, ja haarastrategiat määrittelevät, miten CI/CD toimii. Gitin ja CI/CD:n integraatio on se, mikä mahdollistaa automaattisen, muutoksiin perustuvan toiminnon.
Git laukaisee CI/CD:n
CI/CD pipelines are TRIGGERED by Git events:
→ a PUSH to a branch → runs CI (build + test) on that change
→ a PULL REQUEST → runs CI to verify the change before merging
→ a MERGE to main → may trigger deployment (CD)
→ a TAG (e.g. v1.2.0) → may trigger a release/production deployment
→ Every code change in Git automatically drives the pipeline → change-driven automation.
