Skip to content

Latest commit

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

aws-codebuild-extras Build Status

Adds extra information of your AWS CodeBuild build via environment variables.

Usage

Add the following command to the install or pre_build phase of your buildspec, and replace <A_COMMIT_HASH> by the lastest commit hash (or your preferred revision):

curl -fsSL https://raw.githubusercontent.com/thii/aws-codebuild-extras/<A_COMMIT_HASH>/install >> extras.sh && . ./extras.sh

Alternatively, you can fork this repo and always point to the default branch of your fork.

You can also break the installation into two steps to improve readability. For example in the install phase:

phases:
install:
commands:
- echo Installing codebuild-extras...
- curl -fsSL https://raw.githubusercontent.com/thii/aws-codebuild-extras/<A_COMMIT_HASH>/install >> extras.sh
- . ./extras.sh
NAMEVALUE
CItrue
CODEBUILDtrue
CODEBUILD_GIT_AUTHORCommitter Name
CODEBUILD_GIT_AUTHOR_EMAILuser@example.com
CODEBUILD_GIT_BRANCHbranch name
CODEBUILD_GIT_COMMITcommit hash
CODEBUILD_GIT_MESSAGEcommit message
CODEBUILD_GIT_TAGgit tag
CODEBUILD_PROJECTproject
CODEBUILD_PULL_REQUESTPull request number

About

Add extra information of your AWS CodeBuild build via environment variables.

Resources

Stars

149 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages