An AWS CodePipeline can be triggered on a commit action to AWS CodeCommit.
I do not see an option/way to trigger an AWS CodePipeline on a push action to AWS ECR. Is there a such option?
If you create a Pipeline from AWS CodePipeline Console and choose Amazon ECR as source provider, it will create a CloudWatch event
{
"source": [
"aws.ecr"
],
"detail": {
"eventName": [
"PutImage"
],
"requestParameters": {
"repositoryName": [
"my-repo/nginx"
],
"imageTag": [
"0.1"
]
}
}
Target of this event will be the CodePipeline. You can inspect the Event details in AWS CloudWatch console. Whenever a Push (PutImage) occurs on the ECR repo, Pipeline will be excecuted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With