Skip to content

Instantly share code, notes, and snippets.

@drnic
Last active November 25, 2015 11:42
Show Gist options
  • Save drnic/14e2e4716f7fc5f0e2e9 to your computer and use it in GitHub Desktop.
Save drnic/14e2e4716f7fc5f0e2e9 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 hotel]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment