We have our application code (Java) in Gitlab and we are using Gitlab CI to build, test and create docker image (which is then pushed to AWS ECR)
To provision our infra, we are using aws cdk (which is in a separate project in Gitlab)
Whenever we make some changes in our application(java), we have to manually update the docker tag in infra code (aws cdk) and push it so that deployment is updated.
Is there a way to automate this?
PS. We can not have both java and infra code in one repository