github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+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: 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: v6.*
    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    - aggregate:
    50      - get: cf-deployment
    51        trigger: true
    52      - get: cf-deployment-concourse-tasks
    53      - get: state
    54      - put: gcp-bosh-pool
    55        params:
    56          claim: ((stack-name)).cli.fun
    57      - get: cli-ci
    58    - task: setup-infrastructure
    59      file: cf-deployment-concourse-tasks/bbl-up/task.yml
    60      input_mapping:
    61        bbl-config: state
    62        bbl-state: state
    63      params:
    64        BBL_IAAS: gcp
    65        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
    66        BBL_GCP_PROJECT_ID: ((gcp-project))
    67        BBL_GCP_REGION: us-central1
    68        BBL_GCP_ZONE: us-central1-f
    69        BBL_LB_CERT: ((ssl-cert))
    70        BBL_LB_KEY: ((ssl-cert-private-key))
    71        LB_DOMAIN: ((stack-name)).cli.fun
    72        BBL_ENV_NAME: ((stack-name))
    73        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    74    - task: upload-stemcell
    75      file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml
    76      input_mapping:
    77        bbl-state: state
    78      params:
    79        INFRASTRUCTURE: google
    80        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    81    - task: create-vars-file
    82      file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml
    83      params:
    84        CLIENT_SECRET: ((client-secret))
    85    - task: copy-ops-files
    86      file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml
    87      input_mapping:
    88        input1: cf-deployment
    89        input2: cli-ci
    90      params:
    91        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 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"
    92    - task: deploy-cf
    93      file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
    94      input_mapping:
    95        bbl-state: state
    96        vars-files: vars_path
    97        ops-files: combine_inputs_output
    98      params:
    99        SYSTEM_DOMAIN: ((stack-name)).cli.fun
   100        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"
   101        VARS_STORE_FILE: ci/infrastructure/((stack-name))/deployment-vars.yml
   102        VARS_FILES: vars.yml
   103        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   104    - task: bosh-cleanup
   105      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   106      input_mapping:
   107        bbl-state: state
   108      params:
   109        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   110        CLEAN_ALL: true
   111    ensure:
   112      aggregate:
   113        - put: state
   114          params:
   115            repository: updated-bbl-state
   116            rebase: true
   117        - put: gcp-bosh-pool
   118          params:
   119            release: gcp-bosh-pool
   120  
   121  - name: delete-cf
   122    serial_groups: [((stack-name))]
   123    build_logs_to_retain: 100
   124    plan:
   125    - aggregate:
   126      - get: cf-deployment-concourse-tasks
   127      - get: state
   128      - put: gcp-bosh-pool
   129        params:
   130          claim: ((stack-name)).cli.fun
   131    - task: delete-cf-deployment
   132      file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
   133      input_mapping:
   134        bbl-state: state
   135      params:
   136        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   137        IGNORE_ERRORS: true
   138    ensure:
   139      put: gcp-bosh-pool
   140      params:
   141        release: gcp-bosh-pool
   142  
   143  - name: delete-infrastructure
   144    serial_groups: [((stack-name))]
   145    build_logs_to_retain: 100
   146    plan:
   147    - aggregate:
   148      - get: cf-deployment-concourse-tasks
   149      - get: state
   150      - put: gcp-bosh-pool
   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      aggregate:
   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