-
Notifications
You must be signed in to change notification settings - Fork 3
/
pipeline.yml
69 lines (62 loc) · 1.36 KB
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This is a sample pipeline that can be used in local
# development/testing against a `docker-compose`'d
# Concourse, Consul, and Docker registry started via
# the `docker-compose.yml` contained in this repo.
resource_types:
- name: consul-kv
type: docker-image
source:
repository: registry:5000/concourse-consul-kv-resource
tag: latest
insecure_registries:
- registry:5000
resources:
- name: my-consul-key
type: consul-kv
source:
host: consul
port: 8500
protocol: http
key: my/key
skip_ssl_check: true
jobs:
- name: set-my-consul-key
plan:
- put: my-consul-key
params:
value: foo
- name: get-and-put-my-consul-key
plan:
- get: my-consul-key
- task: echo-key-val
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
tag: latest
inputs:
- name: my-consul-key
run:
path: cat
args:
- my-consul-key/my/key
- task: make-new-key-val
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
tag: latest
outputs:
- name: new-value
run:
path: /bin/bash
args:
- -exc
- echo "new-value" > new-value/value
- put: my-consul-key
params:
file: new-value/value