Add support for downloading source artifacts from Github release

This adds support for retrieving the tarball or zip source artifact from a
Github release. This is done through defining a
"params.include_source_tarball" or "params.include_source_zip" boolean setting.

With this, the resource will download the respective source artfact into the
target directory as either "source.tar.gz" or "source.zip".
This commit is contained in:
Ken Robertson
2015-09-23 11:11:05 -07:00
parent 8508409f8a
commit d563c2714c
5 changed files with 168 additions and 4 deletions

View File

@@ -20,7 +20,9 @@ type InRequest struct {
}
type InParams struct {
Globs []string `json:"globs"`
Globs []string `json:"globs"`
IncludeSourceTarball bool `json:"include_source_tarball"`
IncludeSourceZip bool `json:"include_source_zip"`
}
type InResponse struct {