Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thii/aws-codebuild-extras
Add extra information of your AWS CodeBuild build via environment variables.
https://github.com/thii/aws-codebuild-extras
Last synced: 10 days ago
JSON representation
Add extra information of your AWS CodeBuild build via environment variables.
- Host: GitHub
- URL: https://github.com/thii/aws-codebuild-extras
- Owner: thii
- Created: 2018-01-01T05:42:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-24T12:07:59.000Z (about 4 years ago)
- Last Synced: 2024-10-10T05:35:17.317Z (27 days ago)
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 150
- Watchers: 6
- Forks: 115
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# aws-codebuild-extras ![Build Status](https://codebuild.us-west-2.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiUkxsV0l4UDBkWmh1Z1NIbm9wTENycVl4d1pDTTYrc1I3dzhFSlQ1QWFQdDl1Tm10NGduZklrTWVON1Vock5rOHVJV0xGYWhwT0V0cWVtMFg2WWRLTVlZPSIsIml2UGFyYW1ldGVyU3BlYyI6InhrOHdIV0FzY3Y1dmZ0SGwiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)
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 `` by the lastest commit hash (or your preferred revision):curl -fsSL https://raw.githubusercontent.com/thii/aws-codebuild-extras//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//install >> extras.sh
- . ./extras.sh
```
|NAME|VALUE
|---|---|
|CI|true|
|CODEBUILD|true|
|CODEBUILD_GIT_AUTHOR|Committer Name|
|CODEBUILD_GIT_AUTHOR_EMAIL|[email protected]|
|CODEBUILD_GIT_BRANCH|branch name|
|CODEBUILD_GIT_COMMIT|commit hash|
|CODEBUILD_GIT_MESSAGE|commit message|
|CODEBUILD_GIT_TAG|git tag|
|CODEBUILD_PROJECT|project|
|CODEBUILD_PULL_REQUEST|Pull request number|