Skip to content

Instantly share code, notes, and snippets.

@Anthonyhawkins
Created June 8, 2021 18:06
Show Gist options
  • Save Anthonyhawkins/3e1140af6629043353867b22afb46f6c to your computer and use it in GitHub Desktop.
Save Anthonyhawkins/3e1140af6629043353867b22afb46f6c to your computer and use it in GitHub Desktop.
...
- name: create-spaces
plan:
- get: config-repo
trigger: true
passed:
- create-orgs
- update-org-users
- get: cf-mgmt
- task: create-spaces
image: cf-mgmt
config:
platform: linux
inputs:
- name: config-repo
params:
SYSTEM_DOMAIN: system.cf.us-east-dev.corp.internal
USER_ID: cf-super-admin
PASSWORD: ''
CONFIG_DIR: config-repo/orgs/
CLIENT_SECRET: ''
LOG_LEVEL: info
CF_MGMT_COMMAND: create-spaces
run:
path: config-repo/ci/tasks/cf-mgmt.sh
- name: delete-spaces
plan:
- get: config-repo
trigger: true
passed:
- create-orgs
- create-spaces
- get: cf-mgmt
- get: time-trigger
trigger: true
- task: delete-spaces
image: cf-mgmt
config:
platform: linux
inputs:
- name: config-repo
params:
SYSTEM_DOMAIN: system.cf.us-east-dev.corp.internal
USER_ID: cf-super-admin
PASSWORD: ''
CONFIG_DIR: config-repo/orgs/
CLIENT_SECRET: ''
LOG_LEVEL: info
CF_MGMT_COMMAND: delete-spaces
run:
path: config-repo/ci/tasks/cf-mgmt.sh
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment