Skip to content

Instantly share code, notes, and snippets.

@martin-g
Last active January 20, 2021 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martin-g/5f73493253118300de9f6720cce4fec7 to your computer and use it in GitHub Desktop.
Save martin-g/5f73493253118300de9f6720cce4fec7 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eu
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export fly_target=${fly_target:-tutorial}
echo "Concourse API target ${fly_target}"
echo "Tutorial $(basename $DIR)"
pushd $DIR
fly -t ${fly_target} set-pipeline -p tutorial-pipeline -c concourse-basic-pipeline.yml -n
fly -t ${fly_target} unpause-pipeline -p tutorial-pipeline
fly -t ${fly_target} trigger-job -w -j tutorial-pipeline/job-hello-world
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment