An example of CodeBuild to build a static site by Jekyll.
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'