This repository was archived by the owner on Jul 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 11# pipeline-tasks
22Common 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+ ```
You can’t perform that action at this time.
0 commit comments