Giter Site home page Giter Site logo

ibm-container-resource's Introduction

ibm-container-resource

A concourse resource for managing IBM Container Service version number.

Source Configuration

  • uri: Optional. The IBM Container Service versions URI. If not specified, the resource will use https://containers.bluemix.net/v1/kube-versions. If specified, it overwrites environment setting.

  • environment: Optional. The environment of IBM Container Service. If not specified, the resource will check version of production environment.

  • type: Optional. Default default. If not specified, the resource will check default version.

  • version: Optional. The version number to check. If specified, the resource will only detect version that greater than or equal this version.

Example

Resource configuration for a staging environment of IBM Container Service:

resource_types:
- name: ibm-container
  type: docker-image
  source:
    repository: bluebosh/ibm-container-resource
    tag: latest

resources:
- name: ibm-container-stage
  type: ibm-container
  source:
    environment: stage1
    version: 1.7.16

jobs:
- name: check-ibm-container-version
  plan:
  - aggregate:
    - get: ibm-container-stage
      trigger: true
  - task: get-ibm-container-version
    config:
      platform: linux
      image_resource: { type: docker-image, source: { repository: bluebosh/ibm-container-resource, tag: latest } }
      inputs:
      - name: ibm-container-stage
      run:
        path: /bin/bash
        args:
        - -c
        - |
          #!/bin/bash
          cat ibm-container-stage/number

Behavior

check: Report the current version number.

Detects new version by fetching from the container service endpoint. If the type is latest, it returns latest version. If the type is oldest, it returns oldest version. If the type is other value, it returns default version. And this version should be equal to or greater than the version, otherwise it returns no version.

in: Provide the version as a file.

Provides the version number to the build as a version file in the destination.

Can be configured to bump the version locally, which can be useful for getting the final version ahead of time when building artifacts.

ibm-container-resource's People

Contributors

edwardstudy avatar mattcui avatar xiujuan95 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.