-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
033fd51
commit db8d023
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# gocd-ci | ||
|
||
`GoCD-CI` helps you build your projects using a `.gocd-ci.yml` file. You just have to download the binary and run it from the project's root. | ||
|
||
## Features | ||
- [x] Set environment variables | ||
- [x] Run commands for your build | ||
- [ ] Upload artifacts to GoCD after the build | ||
|
||
## .gocd-ci.yml | ||
```yml | ||
--- | ||
name: "GoCD CI" | ||
env: | ||
FOO: "BAR" | ||
cmd: | ||
- make test | ||
- make build | ||
artifacts: | ||
gocd-ci : . | ||
``` | ||
- `name` - Human readable name for the project. Currently not being used. | ||
- `env` - Map of Environment variables required for the application. You'll get `GO_*` variables for free. If none, it can be ignored from the yml file. | ||
- `cmd` - List of commands to run as part of the build. Like [travis-ci](https://docs.travis-ci.com/user/customizing-the-build/#Customizing-the-Build-Step) we run all the commands even if one of them fail. Though the final exit code will be 1 if any command failed. | ||
- `artifacts` - Map of artifacts to be exposed on the pipeline via GoCD. If none, it can be ignored from the yml file. |