Skip to content

Instantly share code, notes, and snippets.

@bo67192
Created December 5, 2016 00:22
Show Gist options
  • Save bo67192/3da43ad8cba0a70794ab6562b9a1da20 to your computer and use it in GitHub Desktop.
Save bo67192/3da43ad8cba0a70794ab6562b9a1da20 to your computer and use it in GitHub Desktop.
buildspec.yml for chef cookbooks on AWS CodeBuild
version: 0.1
environment_variables:
plaintext:
key: "value"
key: "value"
phases:
install:
commands:
- sudo apt-get update -y
- sudo apt-get install -y wget
- sudo apt-get install -y gdebi
- wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_1.0.3-1_amd64.deb
- gdebi -n chefdk_1.0.3-1_amd64.deb
build:
commands:
- foodcritic .
post_build:
commands:
- echo No post build yet
artifacts:
type: zip
files:
- files
- recipes
- templates
- spec
discard-paths: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment