Skip to content

generates a "one-off" script for executing local concourse tasks

License

Notifications You must be signed in to change notification settings

kkallday/one-off

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

one-off Build Status

Generates a bash script to submit a local concourse task. The bash script will contain all pipeline vars for a given task and generate part of the fly execute command for easy customization. one-off writes the resulting script to stdout.

one-off supports all versions up to 2.6.0.

Usage

$ one-off -h
Usage of app:
  -fo string
    (optional) override path to fly. one-off uses "fly" in $PATH by default
  -j string
    name of job
  -p string
    name of pipeline
  -t string
    name of task
  -ta string
    concourse target alias
$ one-off -ta my-ci -p main -j integration-tests -t third-party-test > third-party-test-one-off.sh
$ cat third-part-test-one-off.sh
#!/bin/bash

export SOME_SECRET_PIPELINE_VAR1="foo"
export ANOTHER_ONE="keys for something"

fly -t my-ci execute --config=REPLACE/ME/PATH/TO/TASK \
    --inputs-from main/integration-tests

Installation

Requires: fly concourse cli

$ go get github.com/kkallday/one-off/one-off

Testing

About

generates a "one-off" script for executing local concourse tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages