Skip to content

Instantly share code, notes, and snippets.

@ddadlani
Created April 3, 2019 19:03
Show Gist options
  • Save ddadlani/94137f87028e54518dfd79a8b26f9e80 to your computer and use it in GitHub Desktop.
Save ddadlani/94137f87028e54518dfd79a8b26f9e80 to your computer and use it in GitHub Desktop.
A script to quickly set a test concourse pipeline
#!/bin/bash
fly -t dev login -c http://localhost:8080 -u test -p test
cat << EOF > /tmp/booklit
resources:
- name: booklit
type: git
source: {uri: "https://github.com/vito/booklit"}
jobs:
- name: unit
public: true
plan:
- get: booklit
trigger: true
- task: test
file: booklit/ci/test.yml
EOF
fly -t dev sp -p test -c /tmp/booklit -n
fly -t dev ep -p test
fly -t dev up -p test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment