# How to split tasks between CI/CD? — retained record

> Retained reddit record from reddit:devops.

Canonical: https://highsignal.app/data/records/05e737cddc62e058

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:devops)  published 2026-10-06 17:03 ingested 2026-10-07 02:38

[original source ↗](https://www.reddit.com/r/devops/comments/1wz7zn9/how_to_split_tasks_between_cicd/)

## retained text



```
I am building a ci/cd pipeline. When a PR is merged, it will push a docker image to ECR, but when I am just pushing a regular commit, I don't want to run the full deployment. What task goes into ci and what goes into cd? I've seen different takes on where to run the docker-related stuff.

\- CI (always runs on push/merge):

* lint
* scan (security, etc)
* build
* test (unit/integration)
* test docker image build ???

\- CD (only runs on merge):

* build docker image
* automated e2e (if any)
* upload binaries to Nexus
* upload image to ECR
```



document fetched 2026-10-07 00:24 · canonical https://reddit.com/r/devops/comments/1wz7zn9/how_to_split_tasks_between_cicd
