github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+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: v7.*
    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_PROJECT_ID: ((gcp-project))
    80        BBL_GCP_REGION: us-central1
    81        BBL_GCP_ZONE: us-central1-f
    82        BBL_LB_CERT: ((ssl-cert))
    83        BBL_LB_KEY: ((ssl-cert-private-key))
    84        LB_DOMAIN: ((stack-name)).cli.fun
    85        BBL_ENV_NAME: ((stack-name))
    86        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    87    - task: upload-stemcell
    88      file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml
    89      input_mapping:
    90        bbl-state: state
    91      params:
    92        INFRASTRUCTURE: google
    93        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    94    - task: create-vars-file
    95      file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml
    96      params:
    97        CLIENT_SECRET: ((client-secret))
    98    - task: copy-ops-files
    99      file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml
   100      input_mapping:
   101        input1: ops-files
   102        input2: cli-ci
   103      params:
   104        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"
   105    - task: upload-edge-capi
   106      file: cli-ci/ci/infrastructure/tasks/upload-edge-capi.yml
   107      input_mapping:
   108        bbl-state: state
   109        release-tarball: edge-capi-release
   110      params:
   111        BBL_STATE_DIR: "ci/infrastructure/((stack-name))"
   112    - task: deploy-cf
   113      file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
   114      input_mapping:
   115        bbl-state: state
   116        vars-files: vars_path
   117        ops-files: combine_inputs_output
   118      params:
   119        SYSTEM_DOMAIN: ((stack-name)).cli.fun
   120        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"
   121        VARS_STORE_FILE: ci/infrastructure/((stack-name))/deployment-vars.yml
   122        VARS_FILES: vars.yml
   123        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   124    - task: bosh-cleanup
   125      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   126      input_mapping:
   127        bbl-state: state
   128      params:
   129        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   130        CLEAN_ALL: true
   131    ensure:
   132      aggregate:
   133        - put: state
   134          params:
   135            repository: updated-bbl-state
   136            rebase: true
   137        - put: gcp-bosh-pool
   138          params:
   139            release: gcp-bosh-pool
   140  
   141  - name: delete-cf
   142    serial_groups: [((stack-name))]
   143    build_logs_to_retain: 100
   144    plan:
   145    - aggregate:
   146      - get: cf-deployment-concourse-tasks
   147      - get: state
   148      - put: gcp-bosh-pool
   149        params:
   150          claim: ((stack-name)).cli.fun
   151    - task: delete-cf-deployment
   152      file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
   153      input_mapping:
   154        bbl-state: state
   155      params:
   156        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   157    ensure:
   158      put: gcp-bosh-pool
   159      params:
   160        release: gcp-bosh-pool
   161  
   162  - name: delete-infrastructure
   163    serial_groups: [((stack-name))]
   164    build_logs_to_retain: 100
   165    plan:
   166    - aggregate:
   167      - get: cf-deployment-concourse-tasks
   168      - get: state
   169      - put: gcp-bosh-pool
   170        params:
   171          claim: ((stack-name)).cli.fun
   172    - task: bosh-cleanup
   173      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   174      input_mapping:
   175        bbl-state: state
   176      params:
   177        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   178        CLEAN_ALL: true
   179    - task: destroy-infrastructure
   180      file: cf-deployment-concourse-tasks/bbl-destroy/task.yml
   181      input_mapping:
   182        bbl-state: state
   183      params:
   184        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   185        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
   186    ensure:
   187      aggregate:
   188      - put: state
   189        params:
   190          repository: updated-bbl-state
   191          rebase: true
   192      - put: gcp-bosh-pool
   193        params:
   194          release: gcp-bosh-pool