You don’t happen to have a template lying around (pipeline.yml) that does exactly what php-basic-pipeline
does - building a docker image from source, pushing it into ECR and deploying it to the CloudFormation stack - EXCEPT taking the source from GitHub instead of using AWS CodeCommit?
I found examples for Pipelines with GitHub using CloudFormation (.yml) as well as for Pipelines with CodeCommit using CloudFormation (.yml) - and an example using ECR that relies on building the image locally…
Interestingly, the php-basic-pipeline
example doesn’t actually use an AWS::CodePipeline
but seems to be purely a AWS::CodeBuild::Project
. No idea how to plug a AWS::CodePipeline::Webhook
(for GitHub) into that…
I already have a shellscript which does build the image locally, tag and push it and then deploys the cloudformation template using the newest tag/version - all in one fell swoop. Maybe adding a git pull to that and making it operate inside it’s own single-served container would be the more sensible way of doing things?