I try to setup CP process according to this docs:
- https://docs.uffizzi.com/engineeringblog/ci-cd-registry/
- https://docs.uffizzi.com/guides/container-registry-integrations/
I created IAM user and EventBridge rule and connect my ECR registry to Uffizzi.
Stage that push MR image in my gitlab-ci.yml looks like this:
push_preview_container:
<<: *on_project_runner
<<: *with_docker_service
<<: *with_docker_compose
variables:
GIT_STRATEGY: none
APP_IMAGE: $PROJECT_ECR_URL
VERSION: $CI_COMMIT_SHA
MR_IID: $CI_MERGE_REQUEST_IID
stage: push_preview_container
image: $TOOLBOX_IMAGE
only:
- merge_requests
script:
- ecs_helper ecr_login
- docker pull "${APP_IMAGE}:${VERSION}"
- docker tag "${APP_IMAGE}:${VERSION}" "${APP_IMAGE}:uffizzi_request_${MR_IID}"
- docker push "${APP_IMAGE}:uffizzi_request_${MR_IID}"
The problem is that EventBridge do not send event(webhook) to Uffizzi when MR image pushed. It send event(webhook) only on branch CI/CD pipeline.
- On my CI/CD pipelines for branches EventBridge successfully send image_pushed event(webhook).
But when I create MR it do the next steps:
- My
push_preview_containerstage runs, and jobs ends with success
[push_preview_container stage][1] [1]: https://i.stack.imgur.com/8lRyU.png
- This push adds
:uffizzi_request_tag to image in my ECR - But for some reason, it does not trigger the image_pushed rule and nothing sends to Uffizzi