github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/ci/infrastructure/v7-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: v7.* 28 - name: ops-files 29 type: git 30 source: 31 uri: https://github.com/cloudfoundry/cf-deployment 32 tag_filter: v7.* 33 - name: state 34 type: git 35 source: 36 uri: git@github.com:cloudfoundry/cli-private 37 private_key: ((cli-private-github-private-key)) 38 branch: master 39 paths: 40 - ci/infrastructure/((stack-name))/bbl-state.json 41 - name: gcp-bosh-pool 42 type: pool 43 source: 44 uri: git@github.com:cloudfoundry/cli-pools 45 private_key: ((cli-pools-github-private-key)) 46 branch: master 47 pool: ((pool-name)) 48 - name: edge-capi-release 49 type: s3 50 source: 51 bucket: capi-releases 52 regexp: capi-(.*)-.*-.*.tgz 53 54 jobs: 55 - name: deploy 56 serial_groups: [((stack-name))] 57 build_logs_to_retain: 100 58 plan: 59 - aggregate: 60 - get: cf-deployment 61 trigger: true 62 - get: edge-capi-release 63 trigger: true 64 - get: cf-deployment-concourse-tasks 65 - get: state 66 - put: gcp-bosh-pool 67 params: 68 claim: ((stack-name)).cli.fun 69 - get: ops-files 70 - get: cli-ci 71 - task: setup-infrastructure 72 file: cf-deployment-concourse-tasks/bbl-up/task.yml 73 input_mapping: 74 bbl-config: state 75 bbl-state: state 76 params: 77 BBL_IAAS: gcp 78 BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds)) 79 BBL_GCP_REGION: us-central1 80 BBL_LB_CERT: ((ssl-cert)) 81 BBL_LB_KEY: ((ssl-cert-private-key)) 82 LB_DOMAIN: ((stack-name)).cli.fun 83 BBL_ENV_NAME: ((stack-name)) 84 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 85 - task: upload-stemcell 86 file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml 87 input_mapping: 88 bbl-state: state 89 params: 90 INFRASTRUCTURE: google 91 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 92 - task: create-vars-file 93 file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml 94 params: 95 CLIENT_SECRET: ((client-secret)) 96 - task: copy-ops-files 97 file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml 98 input_mapping: 99 input1: ops-files 100 input2: cli-ci 101 params: 102 COPY_PATHS: "input2/ci/infrastructure/operations/use-latest-capi.yml 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/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/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 input2/ci/infrastructure/operations/enable-v3-deployments-endpoint.yml" 103 - task: upload-edge-capi 104 file: cli-ci/ci/infrastructure/tasks/upload-edge-capi.yml 105 input_mapping: 106 bbl-state: state 107 release-tarball: edge-capi-release 108 params: 109 BBL_STATE_DIR: "ci/infrastructure/((stack-name))" 110 - task: deploy-cf 111 file: cf-deployment-concourse-tasks/bosh-deploy/task.yml 112 input_mapping: 113 bbl-state: state 114 vars-files: vars_path 115 ops-files: combine_inputs_output 116 params: 117 SYSTEM_DOMAIN: ((stack-name)).cli.fun 118 OPS_FILES: "add-persistent-isolation-segment-diego-cell.yml use-compiled-releases.yml use-latest-capi.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" 119 VARS_FILES: vars.yml 120 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 121 - task: bosh-cleanup 122 file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml 123 input_mapping: 124 bbl-state: state 125 params: 126 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 127 CLEAN_ALL: true 128 ensure: 129 aggregate: 130 - put: state 131 params: 132 repository: updated-bbl-state 133 rebase: true 134 - put: gcp-bosh-pool 135 params: 136 release: gcp-bosh-pool 137 138 - name: delete-cf 139 serial_groups: [((stack-name))] 140 build_logs_to_retain: 100 141 plan: 142 - aggregate: 143 - get: cf-deployment-concourse-tasks 144 - get: state 145 - put: gcp-bosh-pool 146 params: 147 claim: ((stack-name)).cli.fun 148 - task: delete-cf-deployment 149 file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml 150 input_mapping: 151 bbl-state: state 152 params: 153 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 154 ensure: 155 put: gcp-bosh-pool 156 params: 157 release: gcp-bosh-pool 158 159 - name: delete-infrastructure 160 serial_groups: [((stack-name))] 161 build_logs_to_retain: 100 162 plan: 163 - aggregate: 164 - get: cf-deployment-concourse-tasks 165 - get: state 166 - put: gcp-bosh-pool 167 params: 168 claim: ((stack-name)).cli.fun 169 - task: bosh-cleanup 170 file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml 171 input_mapping: 172 bbl-state: state 173 params: 174 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 175 CLEAN_ALL: true 176 - task: destroy-infrastructure 177 file: cf-deployment-concourse-tasks/bbl-destroy/task.yml 178 input_mapping: 179 bbl-state: state 180 params: 181 BBL_STATE_DIR: ci/infrastructure/((stack-name)) 182 BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds)) 183 ensure: 184 aggregate: 185 - put: state 186 params: 187 repository: updated-bbl-state 188 rebase: true 189 - put: gcp-bosh-pool 190 params: 191 release: gcp-bosh-pool