cosee-concourse / naming-resource

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Naming Resource

Build Status Docker Repository on Quay

Generates names for various services using a prefix and the current version.

Source Configuration

  • prefix: Required. The prefix to be used in service names. Must only contain alphabetic characters and has to be unique in order to not cause name conflicts in services.

Behavior

check: no-op

  • Since this resource does not have a version itself check returns an empty JSON.

in: Generates Names for various services

  • Generates names for services and places them in files with the same name as the corresponding service. The default output looks like this: prefix_1_0_0_rc__10

Parameters

  • None.

out: Retrieves the version

  • Retrieves a version generated by semver and makes it available to in.

Parameters

  • version: Required Filepath to semver version file

Example Configuration

Resource Type

- name: service-naming
  type: docker-image
  source:
    repository: quay.io/cosee-concourse/naming-resource

Resource

- name: naming
  type: service-naming
  source:
    prefix: uniqueprefix

Plan

- get: naming
- put: naming
  params:
    version: version/number

About

License:MIT License


Languages

Language:Python 97.2%Language:Shell 2.8%