Skip to content

Instantly share code, notes, and snippets.

@QuinnyPig
Last active October 16, 2018 04:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save QuinnyPig/0c8fae10d0602e7f8dab9bc1cced5ae0 to your computer and use it in GitHub Desktop.
Save QuinnyPig/0c8fae10d0602e7f8dab9bc1cced5ae0 to your computer and use it in GitHub Desktop.
The buildspec.yml that deploys Last Week in AWS.
version: 0.2
phases:
install:
commands:
- echo Entered the install phase...
- pip install -r requirements.txt
build:
commands:
- echo Entered the build phase...
- echo Build started on `date`
- make prod
cache:
paths:
- '/root/.cache/pip/**/*'
CodeBuildProject:
Type: AWS::CodeBuild::Project
Properties:
Name: PublishBlog
Description: Publishes a pelican blog
ServiceRole: arn:aws:iam::NOPE:role/service-role/codebuild-PublishBlog-service-role
Artifacts:
Type: no_artifacts
Environment:
Type: LINUX_CONTAINER
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/python:3.5.6
Source:
Location: https://github.com/QuinnyPig/LastWeekinAWS.git
Type: GITHUB
Auth:
- type: OAUTH
BuildSpec: ""
GitCloneDepth: 1
InsecureSsl: false
ReportBuildStatus: true
TimeoutInMinutes: 10
Tags:
- Key: project
Value: lastweekinaws
@LinguineCode
Copy link

LinguineCode commented Sep 10, 2018

Hey thanks for publishing this. Can you share the Makefile as well? I looked for it in your LastWeekinAWS.git but it's a private repo.

EDIT: Nevermind, I now understand what Pelican is, so I can assume what's in the Makefile after reading their Publish Your Site doc section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment