-
Notifications
You must be signed in to change notification settings - Fork 55
/
pipeline.yml
62 lines (58 loc) · 1.34 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
---
jobs:
- name: deploy
plan:
- in_parallel:
- get: cf-demo
trigger: true
- get: cf-cli-resource-image
- task: authenticate
image: cf-cli-resource-image
config:
platform: linux
params:
CF_API: ((cf-api))
CF_USERNAME: ((cf-username))
CF_PASSWORD: ((cf-password))
outputs:
- name: task-output
run:
path: sh
args:
- -exc
- |
export CF_HOME=$PWD/task-output
cf api $CF_API
cf auth
ls -al $CF_HOME
- put: cf-push
resource: cloud-foundry
params:
cf_home: task-output
commands:
- command: create-org
- command: create-space
- command: push
app_name: cf_home-auth-app
hostname: cf_home-auth-app
path: cf-demo/examples/zero-downtime-history/app
manifest: cf-demo/examples/zero-downtime-history/app/manifest.yml
resources:
- name: cf-demo
type: git
source:
uri: https://github.com/nulldriver/cf-cli-resource.git
- name: cloud-foundry
type: cf-cli-resource-type
source:
org: examples
space: cf_home-auth
- name: cf-cli-resource-image
type: registry-image
source:
repository: nulldriver/cf-cli-resource-rc
resource_types:
- name: cf-cli-resource-type
type: registry-image
source:
repository: nulldriver/cf-cli-resource-rc