Posts Building Jekyll with codebuild on AWS
Post
Cancel
>

Building Jekyll with codebuild on AWS

An example of CodeBuild to build a static site by Jekyll.

Architecture

Architecture

Resources AWS used in this deploy:

  • CodeCommit
  • CodeBuild
  • CodePipeline
  • S3

buildspec.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: 0.1
   
phases:
  install:
    commands:
      - apt-get update
      - apt-get install build-essential 
      - apt-get install zlib1g-dev
      - gem install jekyll:4.2.0
      - gem install rouge:3.26.0
      - gem install bundler
  build:
    commands:
      - echo "******** Building Jekyll site ********"
      - jekyll build
artifacts:
  files:
    - '**/*'
  base-directory: '_site'
This post is licensed under CC BY 4.0 by the author.
#
>