github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+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: v6.*
    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.*
    28  - name: ops-files
    29    type: git
    30    source:
    31      uri: https://github.com/cloudfoundry/cf-deployment
    32      tag_filter: v1.*
    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: cf-state
    42    type: git
    43    source:
    44      uri: git@github.com:cloudfoundry/cli-private
    45      private_key: ((cli-private-github-private-key))
    46      branch: master
    47      paths:
    48      - ci/infrastructure/((stack-name))/deployment-vars.yml
    49  - name: gcp-bosh-pool
    50    type: pool
    51    source:
    52      uri: git@github.com:cloudfoundry/cli-pools
    53      private_key: ((cli-pools-github-private-key))
    54      branch: master
    55      pool: ((pool-name))
    56  
    57  jobs:
    58  - name: deploy
    59    serial_groups: [((stack-name))]
    60    build_logs_to_retain: 100
    61    plan:
    62    - aggregate:
    63      - get: cf-deployment
    64        trigger: true
    65      - get: cf-deployment-concourse-tasks
    66      - get: state
    67      - put: gcp-bosh-pool
    68        params:
    69          claim: ((stack-name)).cli.fun
    70      - get: ops-files
    71      - get: cli-ci
    72      - get: cf-state
    73    - task: setup-infrastructure
    74      file: cf-deployment-concourse-tasks/bbl-up/task.yml
    75      input_mapping:
    76        bbl-config: state
    77        bbl-state: state
    78      params:
    79        BBL_IAAS: gcp
    80        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
    81        BBL_GCP_PROJECT_ID: ((gcp-project))
    82        BBL_GCP_REGION: us-central1
    83        BBL_GCP_ZONE: us-central1-f
    84        BBL_LB_CERT: ((ssl-cert))
    85        BBL_LB_KEY: ((ssl-cert-private-key))
    86        LB_DOMAIN: ((stack-name)).cli.fun
    87        BBL_ENV_NAME: ((stack-name))
    88        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    89    - task: upload-stemcell
    90      file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml
    91      input_mapping:
    92        bbl-state: state
    93      params:
    94        INFRASTRUCTURE: google
    95        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    96    - task: create-vars-file
    97      file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml
    98      params:
    99        CLIENT_SECRET: ((client-secret))
   100    - task: copy-ops-files
   101      file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml
   102      input_mapping:
   103        input1: ops-files
   104        input2: cli-ci
   105      params:
   106        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/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"
   107    - task: deploy-cf
   108      file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
   109      input_mapping:
   110        bbl-state: state
   111        vars-store: cf-state
   112        vars-files: vars_path
   113        ops-files: combine_inputs_output
   114      params:
   115        SYSTEM_DOMAIN: ((stack-name)).cli.fun
   116        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"
   117        VARS_STORE_FILE: ci/infrastructure/((stack-name))/deployment-vars.yml
   118        VARS_FILES: vars.yml
   119        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   120    - task: bosh-cleanup
   121      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   122      input_mapping:
   123        bbl-state: state
   124      params:
   125        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   126        CLEAN_ALL: true
   127    ensure:
   128      aggregate:
   129        - put: state
   130          params:
   131            repository: updated-bbl-state
   132            rebase: true
   133        - put: cf-state
   134          params:
   135            repository: updated-vars-store
   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    - 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  
   155  - name: delete-infrastructure
   156    serial_groups: [((stack-name))]
   157    build_logs_to_retain: 100
   158    plan:
   159    - aggregate:
   160      - get: cf-deployment-concourse-tasks
   161      - get: state
   162    - task: bosh-cleanup
   163      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   164      input_mapping:
   165        bbl-state: state
   166      params:
   167        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   168        CLEAN_ALL: true
   169    - task: destroy-infrastructure
   170      file: cf-deployment-concourse-tasks/bbl-destroy/task.yml
   171      input_mapping:
   172        bbl-state: state
   173      params:
   174        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   175        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
   176      ensure:
   177        put: state
   178        params:
   179          repository: updated-bbl-state
   180          rebase: true