Skip to content

Instantly share code, notes, and snippets.

@actionjack
Forked from drnic/concourse-example-tasks.md
Created November 25, 2015 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save actionjack/ba928a50062c7db2005d to your computer and use it in GitHub Desktop.
Save actionjack/ba928a50062c7db2005d 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