Skip to content

bonzofenix/travel-agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Agent

Works together with concourse to manage pipeline manifests. This tool can be useful when having 1 pipeline that deploys to multiple environments.

Goals:

DRY pipeline manifests: When a pipelines perform the same steps to deploy in multiple environments, manifests start getting large and repetitive. Travel-agent addresses this issue by turning the pipeline manifest into a dynamic template.

Installing

go get -d github.com/compozed/travel-agent/manifest
ln -s $GOPATH/src/github.com/compozed/travel-agent/bin/travel-agent $GOPATH/bin/.

Usage

Target concourse

./travel-agent target CONCOURSE_IP:PORT

Generate project

cd PROJECT_NAME
travel-agent init

Customizing pipeline template

Configure pipeline

example travel-agent.yml:

name: PIPELINE_NAME
git_project: https://github.com/ORG/PROJECT_NAME.git # Supports local/path/to/PROJECT_NAME
target: concourse-alias # Optional. Defaults to: concourse
envs:
- name: dev
- name: prod
  depends_on:
  - dev

Configuring pipeline deployment

Set concourse pipeline

travel-agent book path/to/travel-agent.yml settingy1.yml
  1. It will try to generate your manifest base on your path/to/travel-agent.yml config file
  2. If SPRUCE_SETTINGS_PATH is provided, it tries to spruce merge with the newly generated manifest
  3. It tries to deploy to concourse

Contributing

See our CONTRIBUTING section for more information.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 70.5%
  • Shell 29.5%