github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/ci/infrastructure/lola-pipeline.yml (about) 1 --- 2 groups: 3 - name: create 4 jobs: 5 - deploy 6 - name: delete 7 jobs: 8 - delete-cf 9 - delete-infrastructure 10 11 resources: 12 - name: cf-deployment-concourse-tasks 13 type: git 14 source: 15 uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks 16 tag_filter: v5.3 17 - name: cli-ci 18 type: git 19 source: 20 uri: https://github.com/cloudfoundry/cli 21 branch: master 22 path: ci 23 - name: cf-deployment 24 type: git 25 source: 26 uri: https://github.com/cloudfoundry/cf-deployment 27 tag_filter: v1.7.0 28 - name: bosh-deployment 29 type: git 30 source: 31 uri: https://github.com/cloudfoundry/bosh-deployment 32 version: 33 ref: 52e46d73007b363dcd68b428951a0337608ce057 34 - name: state 35 type: git 36 source: 37 uri: git@github.com:cloudfoundry/cli-private 38 private_key: ((cli-private-github-private-key)) 39 branch: master 40 paths: 41 - ci/infrastructure/((stack-name))/bbl-state.json 42 - name: gcp-bosh-pool 43 type: pool 44 source: 45 uri: git@github.com:cloudfoundry/cli-pools 46 private_key: ((cli-pools-github-private-key)) 47 branch: master 48 pool: ((pool-name)) 49 50 jobs: 51 - name: deploy 52 serial_groups: [((stack-name))] 53 build_logs_to_retain: 100 54 plan: 55 - aggregate: 56 - get: cf-deployment 57 - get: cf-deployment-concourse-tasks 58 - get: state 59 - put: gcp-bosh-pool 60 params: 61 claim: ((stack-name)).cli.fun 62 - get: cli-ci 63 - get: bosh-deployment 64 - task: setup-infrastructure 65 file: cf-deployment-concourse-tasks/bbl-up/task.yml 66 input_mapping: 67 env-repo: state 68 ops-files: state 69 params: 70 BBL_IAAS: gcp 71 BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds)) 72 BBL_GCP_PROJECT_ID: ((gcp-project)) 73 BBL_GCP_REGION: us-central1 74 BBL_GCP_ZONE: us-central1-a 75 BBL_LB_CERT: ((ssl-cert)) 76 BBL_LB_KEY: ((ssl-cert-private-key)) 77 LB_DOMAIN: ((stack-name)).cli.fun 78 BBL_ENV_NAME: ((stack-name)) 79 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 80 - task: upload-stemcell 81 file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml 82 input_mapping: 83 env-repo: state 84 params: 85 INFRASTRUCTURE: google 86 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 87 - task: create-vars-file 88 file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml 89 params: 90 CLIENT_SECRET: ((client-secret)) 91 - task: copy-ops-files 92 file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml 93 input_mapping: 94 input1: cf-deployment 95 input2: cli-ci 96 params: 97 COPY_PATHS: "input1/operations/scale-to-one-az.yml input1/operations/test/add-persistent-isolation-segment-diego-cell.yml input1/operations/use-compiled-releases.yml input2/ci/infrastructure/operations/default-app-memory.yml input2/ci/infrastructure/operations/diego-cell-instances.yml input2/ci/infrastructure/operations/skip-ssl-override.yml input2/ci/infrastructure/operations/uaa-vm_type-override.yml input2/ci/infrastructure/operations/add-uaa-client-credentials.yml input2/ci/infrastructure/operations/add-dummy-windows-stack.yml input2/ci/infrastructure/operations/reduce-async-service-polling.yml input2/ci/infrastructure/operations/add-oidc-provider.yml input2/ci/infrastructure/operations/adjust-user-retry-attempts.yml" 98 - task: deploy-cf 99 file: cf-deployment-concourse-tasks/bosh-deploy/task.yml 100 input_mapping: 101 env-repo: state 102 vars-files: vars_path 103 vars-store: state # actually, we are using credhub but this param is required 104 ops-files: combine_inputs_output 105 params: 106 SYSTEM_DOMAIN: ((stack-name)).cli.fun 107 OPS_FILES: "add-persistent-isolation-segment-diego-cell.yml use-compiled-releases.yml default-app-memory.yml skip-ssl-override.yml scale-to-one-az.yml diego-cell-instances.yml uaa-vm_type-override.yml add-uaa-client-credentials.yml add-dummy-windows-stack.yml reduce-async-service-polling.yml adjust-user-retry-attempts.yml" 108 USE_VARS_STORE: false 109 VARS_FILES: vars.yml 110 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 111 - task: bosh-cleanup 112 file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml 113 input_mapping: 114 env-repo: state 115 params: 116 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 117 CLEAN_ALL: true 118 ensure: 119 aggregate: 120 - put: state 121 params: 122 repository: updated-env-repo 123 rebase: true 124 - put: gcp-bosh-pool 125 params: 126 release: gcp-bosh-pool 127 128 - name: delete-cf 129 serial_groups: [((stack-name))] 130 build_logs_to_retain: 100 131 plan: 132 - aggregate: 133 - get: cf-deployment-concourse-tasks 134 - get: state 135 - put: gcp-bosh-pool 136 params: 137 claim: ((stack-name)).cli.fun 138 - task: delete-cf-deployment 139 file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml 140 input_mapping: 141 env-repo: state 142 params: 143 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 144 IGNORE_ERRORS: true 145 ensure: 146 put: gcp-bosh-pool 147 params: 148 release: gcp-bosh-pool 149 150 - name: delete-infrastructure 151 serial_groups: [((stack-name))] 152 build_logs_to_retain: 100 153 plan: 154 - aggregate: 155 - get: cf-deployment-concourse-tasks 156 - get: state 157 - put: gcp-bosh-pool 158 params: 159 claim: ((stack-name)).cli.fun 160 - task: bosh-cleanup 161 file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml 162 input_mapping: 163 env-repo: state 164 params: 165 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 166 CLEAN_ALL: true 167 - task: destroy-infrastructure 168 file: cf-deployment-concourse-tasks/bbl-destroy/task.yml 169 input_mapping: 170 env-repo: state 171 params: 172 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 173 BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds)) 174 ensure: 175 aggregate: 176 - put: state 177 params: 178 repository: updated-env-repo 179 rebase: true 180 - put: gcp-bosh-pool 181 params: 182 release: gcp-bosh-pool