I’ve updated this blog to use a new Jekyll theme, as well as the CICD pipeline for automated delivery. I hacked together a method of replacing the ECS Container task without the load balancer, though it may result in badly cached responses. Still looking for the best way to handle this without paying Amazon extra load balancing fees.
The updated pipeline includes the following:
AWS CodeCommit Lambda trigger on push to master
AWS Lambda triggers AWS CodeBuild project
AWS CodeBuild project uses the following buildspec.yml
AWS CodeBuild builds the container, uploads to the AWS ECR, stops the current task, and purges CloudFront
AWS CodeBuild Ubuntu Docker builder uses Ubuntu 14.04 LTS. Unfortunately I need Ruby 2.1+ for some Jekyll dependencies.
Below it uses rbenv as a method to install Ruby 2.3+. The problem is the build process takes ~6 minutes due to the apt dependencies and the installation of Ruby 2.3. My plan at this point is to build a new base container that is includes all of these, and use Docker multi-stage build process to make this faster.