A Concourse resource for triggering builds when new habitat packages are promoted to channels
origin
: Required the package originname
: Required the package namechannel
: Optional the bldr channel to watch. Defaults to stable.platform
: Optional the package platform to filter on. Defaults to x86_64-linuxbldr_url
: Optional the bldr server to check against. Defaults to https://bldr.habitat.sh/v1/depot/.
resource_types:
- name: hab-pkg
type: docker-image
source:
repository: jonlives/hab-resource
tag: latest
resources:
- name: hab-pkg
type: hab-pkg
source:
origin: jonlives
name: national-parks
channel: unstable
jobs:
- name: hab-query
plan:
- get: hab-pkg
trigger: true
- put: hab-pkg
params: {promote_to: prod}
Will return a list (in ascending order) of all versions of a package on the specified channel
Will return the version and release numbers for the most recently promoted version of the specified package to the specified channel
Will promote the latest package version on the configured channel to the specified promotion channel
This resource borrows very very heavily from eeyun/bldr-resource