Skip to content

Instantly share code, notes, and snippets.

@alext
Last active December 12, 2017 13:20
Show Gist options
  • Save alext/e2de098f733b203bd350e4ccbacfe986 to your computer and use it in GitHub Desktop.
Save alext/e2de098f733b203bd350e4ccbacfe986 to your computer and use it in GitHub Desktop.
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