Skip to content

Instantly share code, notes, and snippets.

@crazyguitar
Last active March 18, 2018 11:28
Show Gist options
  • Save crazyguitar/1b2ef644e0267948db3bcf286849df50 to your computer and use it in GitHub Desktop.
Save crazyguitar/1b2ef644e0267948db3bcf286849df50 to your computer and use it in GitHub Desktop.
aws codestar note

CodeBuid, CodeDeploy, CodePipeline

CodeBuild

Build Spec Syntax

  1. version: Required mapping. Represents the build spec version. We recommend you use 0.2.
  2. env: Optional sequence. Represents information for one or more custom environment variables.
  3. phases: Required sequence. Represents the commands AWS CodeBuild will run during each phase of the build.
  4. artifacts: Optional sequence. Represents information about where AWS CodeBuild can find the build output and how AWS CodeBuild will prepare it for uploading to the Amazon S3 output bucket.
    1. files: Required sequence. Represents the locations containing the build output artifacts in the build environment.
    2. discard-paths: Optional mapping. Represents whether paths to files in the build output artifact are discarded
    3. base-directory: Optional mapping. Represents one or more top-level directories.
  5. cache Optional sequence. Represents information about where AWS CodeBuild can prepare the files for uploading cache to an Amazon S3 cache bucket.

Futher reading:

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