I'm creating a AWS CodePipeline with the following phases:
- Source: Get code from Github when some change occurs in the staging branch.
- Build:Read the buildspec.yml to execute "mvn clean package", docker build and docker push.
- Deploy: Deploy to ECS Cluster
Now I need to create a 4 phase (AfterDeploy Phase) that should commit some files in github. So, after all these phases completed with success, the AfterDeploy Phase should commit some files generated by Build phase in github.
Any idea how can I do it?