Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 00393fb

Browse files
add generate manifest example
1 parent b4d3270 commit 00393fb

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,59 @@
11
# pipeline-tasks
22
Common Concourse Pipeline Tasks
3+
4+
## Examples
5+
6+
All examples use the following resources:
7+
8+
```
9+
resource_types:
10+
- name: cf-cli-resource
11+
type: docker-image
12+
source:
13+
repository: patrickcrocker/cf-cli-resource
14+
tag: 2.0.0
15+
16+
resources:
17+
- name: pipeline-tasks
18+
type: git
19+
source:
20+
uri: https://github.com/Pivotal-Field-Engineering/pipeline-tasks.git
21+
branch: master
22+
23+
- name: cf-test
24+
type: cf-cli-resource
25+
source:
26+
api: https://api.run.pivotal.io
27+
skip_cert_check: false
28+
29+
password: oh-so-secret
30+
org: user-org
31+
space: test-space
32+
```
33+
34+
## Generate a Cloud Foundry Manifest
35+
36+
```
37+
- name: test
38+
plan:
39+
- aggregate:
40+
- get: pipeline-tasks
41+
- get: artifact
42+
- task: generate-manifest
43+
file: pipeline-tasks/generate-manifest/task.yml
44+
params:
45+
MF_NAME: myapp
46+
MF_HOST: myapp
47+
MF_SERVICES: [ myapp-db, myapp-mq ]
48+
MF_ENV:
49+
RAILS_ENV: production
50+
RACK_ENV: production
51+
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 1.8.0_+ }, memory_calculator: { stack_threads: 200 } }'
52+
- put: cf-push
53+
resource: cf-test
54+
params:
55+
command: zero-downtime-push
56+
manifest: task-output/manifest.yml
57+
path: artifact/myapp-*.jar
58+
current_app_name: {{cf-test-app-name}}
59+
```

0 commit comments

Comments
 (0)