concourse/github-release-resource

Name: github-release-resource

Owner: Concourse

Description: a resource for github releases

Created: 2015-01-31 23:54:21.0

Updated: 2018-05-23 14:44:55.0

Pushed: 2018-05-23 14:44:53.0

Homepage: null

Size: 899

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GitHub Releases Resource

Fetches and creates versioned GitHub resources.

If you're seeing rate limits affecting you then please add a token to the source configuration. This will increase your number of allowed requests.

Source Configuration
Example
me: gh-release
pe: github-release
urce:
owner: concourse
repository: concourse
access_token: abcdef1234567890
yaml
t: gh-release
yaml
t: gh-release
rams:
name: path/to/name/file
tag: path/to/tag/file
body: path/to/body/file
globs:
- paths/to/files/to/upload-*.tgz

To get a specific version of a release:

t: gh-release
rsion: { tag: 'v0.0.1' }

To set a custom tag filter:

me: gh-release
pe: github-release
urce:
owner: concourse
repository: concourse
tag_filter: "version-(.*)"
Behavior
check: Check for released versions.

Releases are listed and sorted by their tag, using semver semantics if possible. If version is specified, check returns releases from the specified version on. Otherwise, check returns the latest release.

in: Fetch assets from a release.

Fetches artifacts from the given release version. If the version is not specified, the latest version is chosen using semver semantics.

Also creates the following files:

Parameters
out: Publish a release.

Given a name specified in name, a body specified in body, and the tag to use specified in tag, this creates a release on GitHub then uploads the files matching the patterns in globs to the release.

Parameters
Development
Prerequisites
Running the tests

The tests have been embedded with the Dockerfile; ensuring that the testing environment is consistent across any docker enabled platform. When the docker image builds, the test are run inside the docker container, on failure they will stop the build.

Run the tests with the following command:

er build -t github-release-resource .
Contributing

Please make all pull requests to the master branch and ensure tests pass locally.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.