Skip to content

Instantly share code, notes, and snippets.

@davisdre
Created March 14, 2022 02:08
Show Gist options
  • Save davisdre/cb0eb45c60396dace021664dc0b281cb to your computer and use it in GitHub Desktop.
Save davisdre/cb0eb45c60396dace021664dc0b281cb to your computer and use it in GitHub Desktop.
Here is the AWS CodeBuild buildspec.yml for Jekyll.
# Do not change version. This is the version of aws buildspec, not the version of your buldspec file.
version: 0.2
phases:
install:
runtime-versions:
ruby: latest
commands:
- echo Installing Jekyll...
- gem install jekyll bundler
- bundle install
build:
commands:
- echo Build started on `date`
- echo Generating Jekyll static site
- bundle exec jekyll build
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- '**/*'
base-directory: '_site'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment