jonlives / hab-resource

Habitat resource for Concourse CI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bldr resource

A Concourse resource for triggering builds when new habitat packages are promoted to channels

Source configuration

  • origin: Required the package origin
  • name: Required the package name
  • channel: Optional the bldr channel to watch. Defaults to stable.
  • platform: Optional the package platform to filter on. Defaults to x86_64-linux
  • bldr_url: Optional the bldr server to check against. Defaults to https://bldr.habitat.sh/v1/depot/.

Example

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}  

Behaviour

check: Returns all package versions on a channel

Will return a list (in ascending order) of all versions of a package on the specified channel

in: Get the latest package version 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

out: Promotes the latest specified package version to the specified channel

Will promote the latest package version on the configured channel to the specified promotion channel

Attribution

This resource borrows very very heavily from eeyun/bldr-resource

About

Habitat resource for Concourse CI

License:Apache License 2.0


Languages

Language:Shell 90.7%Language:Dockerfile 9.3%