github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+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  - name: overview-broker
    50    type: git
    51    source:
    52      uri: https://github.com/mattmcneeney/overview-broker
    53      branch: master
    54  
    55  jobs:
    56  - name: deploy
    57    serial_groups: [((stack-name))]
    58    build_logs_to_retain: 100
    59    plan:
    60    - aggregate:
    61      - get: cf-deployment
    62      - get: cf-deployment-concourse-tasks
    63      - get: state
    64      - put: gcp-bosh-pool
    65        timeout: 2h
    66        params:
    67          claim: ((stack-name)).cli.fun
    68      - get: cli-ci
    69      - get: bosh-deployment
    70      - get: overview-broker
    71    - task: setup-infrastructure
    72      file: cf-deployment-concourse-tasks/bbl-up/task.yml
    73      input_mapping:
    74        env-repo: state
    75        ops-files: 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-a
    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        env-repo: 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: cf-deployment
   102        input2: cli-ci
   103      params:
   104        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"
   105    - task: deploy-cf
   106      file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
   107      input_mapping:
   108        env-repo: state
   109        vars-files: vars_path
   110        vars-store: state # actually, we are using credhub but this param is required
   111        ops-files: combine_inputs_output
   112      params:
   113        SYSTEM_DOMAIN: ((stack-name)).cli.fun
   114        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"
   115        USE_VARS_STORE: false
   116        VARS_FILES: vars.yml
   117        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   118    - task: bosh-cleanup
   119      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   120      input_mapping:
   121        env-repo: state
   122      params:
   123        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   124        CLEAN_ALL: true
   125    - task: add-example-service-broker
   126      file: cli-ci/ci/infrastructure/tasks/add-example-service-broker.yml
   127      params:
   128        FOUNDATION_NAME: ((stack-name))
   129    ensure:
   130      aggregate:
   131        - put: state
   132          params:
   133            repository: updated-env-repo
   134            rebase: true
   135        - put: gcp-bosh-pool
   136          params:
   137            release: gcp-bosh-pool
   138  
   139  - name: delete-cf
   140    serial_groups: [((stack-name))]
   141    build_logs_to_retain: 100
   142    plan:
   143    - aggregate:
   144      - get: cf-deployment-concourse-tasks
   145      - get: state
   146      - put: gcp-bosh-pool
   147        timeout: 2h
   148        params:
   149          claim: ((stack-name)).cli.fun
   150    - task: delete-cf-deployment
   151      file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
   152      input_mapping:
   153        env-repo: state
   154      params:
   155        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   156        IGNORE_ERRORS: true
   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        timeout: 2h
   171        params:
   172          claim: ((stack-name)).cli.fun
   173    - task: bosh-cleanup
   174      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   175      input_mapping:
   176        env-repo: state
   177      params:
   178        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   179        CLEAN_ALL: true
   180    - task: destroy-infrastructure
   181      file: cf-deployment-concourse-tasks/bbl-destroy/task.yml
   182      input_mapping:
   183        env-repo: state
   184      params:
   185        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   186        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
   187    ensure:
   188      aggregate:
   189      - put: state
   190        params:
   191          repository: updated-env-repo
   192          rebase: true
   193      - put: gcp-bosh-pool
   194        params:
   195          release: gcp-bosh-pool