github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/infrastructure/legacy-pipeline.yml (about)

     1  ---
     2  # This version covers the 2019 support period
     3  # cf-deployment v7.0.0
     4  
     5  groups:
     6  - name: create
     7    jobs:
     8    - deploy
     9  - name: delete
    10    jobs:
    11    - delete-cf
    12    - delete-infrastructure
    13  
    14  resources:
    15  - name: cf-deployment-concourse-tasks
    16    type: git
    17    source:
    18      uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks
    19      tag_filter: v8.*
    20  - name: cli-ci
    21    type: git
    22    source:
    23      uri: https://github.com/cloudfoundry/cli
    24      branch: master
    25      path: ci
    26  - name: cf-deployment
    27    type: git
    28    source:
    29      uri: https://github.com/cloudfoundry/cf-deployment
    30      tag_filter: v7.0.0
    31  - name: state
    32    type: git
    33    source:
    34      uri: git@github.com:cloudfoundry/cli-private
    35      private_key: ((cli-private-github-private-key))
    36      branch: master
    37      paths:
    38      - ci/infrastructure/((stack-name))/bbl-state.json
    39  - name: gcp-bosh-pool
    40    type: pool
    41    source:
    42      uri: git@github.com:cloudfoundry/cli-pools
    43      private_key: ((cli-pools-github-private-key))
    44      branch: master
    45      pool: ((pool-name))
    46  
    47  jobs:
    48  - name: deploy
    49    serial_groups: [((stack-name))]
    50    build_logs_to_retain: 100
    51    plan:
    52    - in_parallel:
    53      - get: cf-deployment
    54      - get: cf-deployment-concourse-tasks
    55      - get: state
    56      - put: gcp-bosh-pool
    57        timeout: 2h
    58        params:
    59          claim: ((stack-name)).cli.fun
    60      - get: cli-ci
    61    - task: setup-infrastructure
    62      file: cf-deployment-concourse-tasks/bbl-up/task.yml
    63      input_mapping:
    64        bbl-config: state
    65        bbl-state: state
    66      params:
    67        BBL_IAAS: gcp
    68        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
    69        BBL_GCP_REGION: us-central1
    70        BBL_LB_CERT: ((ssl-cert))
    71        BBL_LB_KEY: ((ssl-cert-private-key))
    72        LB_DOMAIN: ((stack-name)).cli.fun
    73        BBL_ENV_NAME: ((stack-name))
    74        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    75    - task: upload-stemcell
    76      file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml
    77      input_mapping:
    78        bbl-state: updated-bbl-state
    79      params:
    80        INFRASTRUCTURE: google
    81        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    82    - task: create-vars-file
    83      file: cli-ci/ci/infrastructure/tasks/create-vars-file.yml
    84      params:
    85        CLIENT_SECRET: ((client-secret))
    86    - task: copy-ops-files
    87      file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml
    88      input_mapping:
    89        input1: cf-deployment
    90        input2: cli-ci
    91      params:
    92        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/add-dummy-windows-stack.yml input2/ci/infrastructure/operations/add-oidc-provider.yml input2/ci/infrastructure/operations/add-uaa-client-credentials.yml input2/ci/infrastructure/operations/add-uaa-client-cf-custom.yml input2/ci/infrastructure/operations/adjust-user-retry-attempts.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/enable-v3-deployments-endpoint.yml input2/ci/infrastructure/operations/give-cf-admin-clients-read-scope.yml input2/ci/infrastructure/operations/reduce-async-service-polling.yml input2/ci/infrastructure/operations/skip-ssl-override.yml input2/ci/infrastructure/operations/uaa-vm_type-override.yml"
    93    - task: deploy-cf
    94      file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
    95      input_mapping:
    96        bbl-state: updated-bbl-state
    97        vars-files: vars_path
    98        ops-files: combine_inputs_output
    99      params:
   100        SYSTEM_DOMAIN: ((stack-name)).cli.fun
   101        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 give-cf-admin-clients-read-scope.yml add-uaa-client-cf-custom.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: updated-bbl-state
   108      params:
   109        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   110        CLEAN_ALL: true
   111    ensure:
   112      in_parallel:
   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    - in_parallel:
   126      - get: cf-deployment-concourse-tasks
   127      - get: state
   128      - put: gcp-bosh-pool
   129        timeout: 2h
   130        params:
   131          claim: ((stack-name)).cli.fun
   132    - task: delete-cf-deployment
   133      file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
   134      input_mapping:
   135        bbl-state: state
   136      params:
   137        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   138        IGNORE_ERRORS: true
   139    ensure:
   140      put: gcp-bosh-pool
   141      params:
   142        release: gcp-bosh-pool
   143  
   144  - name: delete-infrastructure
   145    serial_groups: [((stack-name))]
   146    build_logs_to_retain: 100
   147    plan:
   148    - in_parallel:
   149      - get: cf-deployment-concourse-tasks
   150      - get: state
   151      - put: gcp-bosh-pool
   152        timeout: 2h
   153        params:
   154          claim: ((stack-name)).cli.fun
   155    - task: bosh-cleanup
   156      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   157      input_mapping:
   158        bbl-state: state
   159      params:
   160        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   161        CLEAN_ALL: true
   162    - task: destroy-infrastructure
   163      file: cf-deployment-concourse-tasks/bbl-destroy/task.yml
   164      input_mapping:
   165        bbl-state: state
   166      params:
   167        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   168        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
   169    ensure:
   170      in_parallel:
   171      - put: state
   172        params:
   173          repository: updated-bbl-state
   174          rebase: true
   175      - put: gcp-bosh-pool
   176        params:
   177          release: gcp-bosh-pool