github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/infrastructure/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: v8.* 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: v* 28 - name: state 29 type: git 30 source: 31 uri: git@github.com:cloudfoundry/cli-private 32 private_key: ((cli-private-github-private-key)) 33 branch: master 34 paths: 35 - ci/infrastructure/((stack-name))/bbl-state.json 36 - name: gcp-bosh-pool 37 type: pool 38 source: 39 uri: git@github.com:cloudfoundry/cli-pools 40 private_key: ((cli-pools-github-private-key)) 41 branch: master 42 pool: ((pool-name)) 43 44 jobs: 45 - name: deploy 46 serial_groups: [((stack-name))] 47 build_logs_to_retain: 100 48 plan: 49 - in_parallel: 50 - get: cf-deployment 51 trigger: true 52 - get: cf-deployment-concourse-tasks 53 - get: state 54 - put: gcp-bosh-pool 55 timeout: 2h 56 params: 57 claim: ((stack-name)).cli.fun 58 - get: cli-ci 59 - task: setup-infrastructure 60 file: cf-deployment-concourse-tasks/bbl-up/task.yml 61 input_mapping: 62 bbl-config: state 63 bbl-state: state 64 params: 65 BBL_IAAS: gcp 66 BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds)) 67 BBL_GCP_REGION: us-central1 68 BBL_LB_CERT: ((ssl-cert)) 69 BBL_LB_KEY: ((ssl-cert-private-key)) 70 LB_DOMAIN: ((stack-name)).cli.fun 71 BBL_ENV_NAME: ((stack-name)) 72 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 73 - task: upload-stemcell 74 file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml 75 input_mapping: 76 bbl-state: updated-bbl-state 77 params: 78 INFRASTRUCTURE: google 79 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 80 - task: create-vars-file 81 file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml 82 params: 83 CLIENT_SECRET: ((client-secret)) 84 - task: copy-ops-files 85 file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml 86 input_mapping: 87 input1: cf-deployment 88 input2: cli-ci 89 params: 90 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 input1/operations/use-internal-lookup-for-route-services.yml input2/ci/infrastructure/operations/add-dummy-windows-stack.yml input2/ci/infrastructure/operations/add-oidc-provider.yml input2/ci/infrastructure/operations/add-uaa-client-credentials.yml input2/ci/infrastructure/operations/add-uaa-client-cf-custom.yml input2/ci/infrastructure/operations/adjust-user-retry-attempts.yml input2/ci/infrastructure/operations/cli-isolation-cell-overrides.yml input2/ci/infrastructure/operations/default-app-memory.yml input2/ci/infrastructure/operations/diego-cell-instances.yml input2/ci/infrastructure/operations/enable-v3-deployments-endpoint.yml input2/ci/infrastructure/operations/give-cf-admin-clients-read-scope.yml input2/ci/infrastructure/operations/reduce-async-service-polling.yml input2/ci/infrastructure/operations/skip-ssl-override.yml input2/ci/infrastructure/operations/uaa-vm_type-override.yml" 91 - task: deploy-cf 92 file: cf-deployment-concourse-tasks/bosh-deploy/task.yml 93 input_mapping: 94 bbl-state: updated-bbl-state 95 vars-files: vars_path 96 ops-files: combine_inputs_output 97 params: 98 SYSTEM_DOMAIN: ((stack-name)).cli.fun 99 OPS_FILES: "add-persistent-isolation-segment-diego-cell.yml use-compiled-releases.yml cli-isolation-cell-overrides.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 add-oidc-provider.yml adjust-user-retry-attempts.yml enable-v3-deployments-endpoint.yml give-cf-admin-clients-read-scope.yml add-uaa-client-cf-custom.yml use-internal-lookup-for-route-services.yml" 100 VARS_FILES: vars.yml 101 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 102 - task: bosh-cleanup 103 file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml 104 input_mapping: 105 bbl-state: updated-bbl-state 106 params: 107 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 108 CLEAN_ALL: true 109 ensure: 110 in_parallel: 111 - put: state 112 params: 113 repository: updated-bbl-state 114 rebase: true 115 - put: gcp-bosh-pool 116 params: 117 release: gcp-bosh-pool 118 119 - name: delete-cf 120 serial_groups: [((stack-name))] 121 build_logs_to_retain: 100 122 plan: 123 - in_parallel: 124 - get: cf-deployment-concourse-tasks 125 - get: state 126 - put: gcp-bosh-pool 127 timeout: 2h 128 params: 129 claim: ((stack-name)).cli.fun 130 - task: delete-cf-deployment 131 file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml 132 input_mapping: 133 bbl-state: state 134 params: 135 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 136 IGNORE_ERRORS: true 137 ensure: 138 put: gcp-bosh-pool 139 params: 140 release: gcp-bosh-pool 141 142 - name: delete-infrastructure 143 serial_groups: [((stack-name))] 144 build_logs_to_retain: 100 145 plan: 146 - in_parallel: 147 - get: cf-deployment-concourse-tasks 148 - get: state 149 - put: gcp-bosh-pool 150 timeout: 2h 151 params: 152 claim: ((stack-name)).cli.fun 153 - task: bosh-cleanup 154 file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml 155 input_mapping: 156 bbl-state: state 157 params: 158 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 159 CLEAN_ALL: true 160 - task: destroy-infrastructure 161 file: cf-deployment-concourse-tasks/bbl-destroy/task.yml 162 input_mapping: 163 bbl-state: state 164 params: 165 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 166 BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds)) 167 ensure: 168 in_parallel: 169 - put: state 170 params: 171 repository: updated-bbl-state 172 rebase: true 173 - put: gcp-bosh-pool 174 params: 175 release: gcp-bosh-pool