Skip to content

Instantly share code, notes, and snippets.

@alext alext/christmas-tree.yml
Last active Dec 12, 2017

Embed
What would you like to do?
Concourse pipeline that displays a Christmas tree.
resources:
- name: 'x'
type: time
source:
interval: 20s
check_every: 20s
- name: 'y'
type: time
source:
interval: 2000h
jobs:
- name: +
serial: true
plan:
- get: 'x'
trigger: true
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: false
- name: +=+=+=
serial: true
plan:
- get: 'x'
trigger: true
- get: 'y'
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [19]
- name: =+=+=+=+=+=
serial: true
plan:
- get: 'x'
trigger: true
- get: 'y'
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [10]
- name: +=+=+=+=+=+=+=+=+
serial: true
plan:
- get: 'x'
trigger: true
- get: 'y'
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [19]
- name: =+=+=+=+=+=+=+=+=+=+=+
serial: true
plan:
- get: 'x'
trigger: true
- get: 'y'
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [10]
- name: +=+=+=+=+=+=+=+=+=+=+=+=+=+=
serial: true
plan:
- get: 'x'
trigger: true
- get: 'y'
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [19]
- name: =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
serial: true
plan:
- get: 'x'
trigger: true
- get: 'y'
trigger: true
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [10]
- name: +++
serial: true
plan:
- get: 'y'
trigger: true
- task: shine
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine
run:
path: sleep
args: [59]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.