Tracks the versions of a release on bosh.io.
For example, to automatically consume releases of Concourse:
resources:
- name: concourse
type: bosh-io-release
source:
repository: concourse/concourse
repository
: Required. The GitHub repository of the release, i.e.username/reponame
.
Detects new versions of the release that have been published to bosh.io. If no version is specified, check
returns the latest version, otherwise check
returns all versions from the version specified on.
Note that there may be a delay between the final release appearing on GitHub, and it appearing in bosh.io.
Fetches a given release, placing the following in the destination:
version
: The version number of the release.url
: A URL that can be used to download the release tarball.sha1
: The sha1 of the release tarball.release.tgz
: The release tarball, if thetarball
param istrue
.
tarball
: Optional. Defaulttrue
. Fetch the release tarball.
- docker is required - version 17.06.x is tested; earlier versions may also work.
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:
docker build -t bosh-io-release-resource .
Please make all pull requests to the master
branch and ensure tests pass
locally.