Skip to content

Instantly share code, notes, and snippets.

@bgandon
Forked from drnic/concourse-example-tasks.md
Last active May 17, 2018 21:04
Show Gist options
  • Save bgandon/c275f079da2885f87a03 to your computer and use it in GitHub Desktop.
Save bgandon/c275f079da2885f87a03 to your computer and use it in GitHub Desktop.
A simple concourse example task - fork and try anything

Concourse Tutorial - Example Tasks

This gist includes some https://concourse.ci job tasks

  • hello-world.yml - displays "hello world"
  • display-other-task.yml - uses this task as a resource itself and displays the hello-world.yml YAML; assumes that the gist is available in the concourse pipeline as resource-gist.
  • display-other-task-renamed-resource-input.yml - is like the task above, but assumes the resource is now named gist rather than resource-gist
---
platform: linux
image: docker:///ubuntu#14.04
inputs:
- name: gist
run:
path: cat
args: [gist/hello-world.yml]
---
platform: linux
image: docker:///ubuntu#14.04
inputs:
- name: resource-gist
run:
path: cat
args: [resource-gist/hello-world.yml]
---
platform: linux
image: docker:///ubuntu#14.04
run:
path: echo
args: [hello world from couch]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment