When an enterprise user pushes up new code to @username/their-repo#website, we need to take that code, run it through react-scripts build, and then place the built deployment into their S3 bucket. The Deploy pipeline is only required when they make that push, it can be destroyed afterwards. Rough flow is:
User pushes up their create-react-app source
We receive a webhook telling us that there was a push to the magic website branch
We create a CodePipeline which uses the GitHub repo as a Source, runs through a create-react-app environment for Build, places the output artifact into their S3 bucket, and then outputs a notification to the SQS queue
The SQS processor sees the notification and then deletes the CodePipeline
When an enterprise user pushes up new code to
@username/their-repo#website
, we need to take that code, run it throughreact-scripts build
, and then place the built deployment into their S3 bucket. The Deploy pipeline is only required when they make that push, it can be destroyed afterwards. Rough flow is:create-react-app
sourcewebsite
branch