github.com/randomtask1155/cli@v6.41.1-0.20181227003417-a98eed78cbde+incompatible/ci/infrastructure/legacy-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: state
    24    type: git
    25    source:
    26      uri: git@github.com:cloudfoundry/cli-private
    27      private_key: ((cli-private-github-private-key))
    28      branch: master
    29      paths:
    30      - ci/infrastructure/((stack-name))/bbl-state.json
    31  - name: cf-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))/deployment-vars.yml
    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    - aggregate:
    53      - get: cf-deployment-concourse-tasks
    54      - get: state
    55      - put: gcp-bosh-pool
    56        params:
    57          claim: ((stack-name)).cli.fun
    58      - get: cli-ci
    59      - get: cf-state
    60    - task: setup-infrastructure
    61      file: cf-deployment-concourse-tasks/bbl-up/task.yml
    62      input_mapping:
    63        bbl-config: state
    64        bbl-state: state
    65      params:
    66        BBL_IAAS: gcp
    67        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
    68        BBL_GCP_PROJECT_ID: ((gcp-project))
    69        BBL_GCP_REGION: us-central1
    70        BBL_GCP_ZONE: us-central1-f
    71        BBL_LB_CERT: ((ssl-cert))
    72        BBL_LB_KEY: ((ssl-cert-private-key))
    73        LB_DOMAIN: ((stack-name)).cli.fun
    74        BBL_ENV_NAME: ((stack-name))
    75        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    76    - task: deploy-legacy-cf
    77      file: cli-ci/ci/infrastructure/tasks/deploy-legacy-cf.yml
    78      input_mapping:
    79        bbl-state: state
    80        vars-store: cf-state
    81      params:
    82        SYSTEM_DOMAIN: ((stack-name)).cli.fun
    83        VARS_STORE_FILE: ci/infrastructure/((stack-name))/deployment-vars.yml
    84        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    85        CLIENT_SECRET: ((client-secret))
    86    - task: bosh-cleanup
    87      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
    88      input_mapping:
    89        bbl-state: state
    90      params:
    91        BBL_STATE_DIR: ci/infrastructure/((stack-name))
    92        CLEAN_ALL: true
    93    ensure:
    94      aggregate:
    95        - put: state
    96          params:
    97            repository: updated-bbl-state
    98            rebase: true
    99        - put: cf-state
   100          params:
   101            repository: updated-vars-store
   102            rebase: true
   103        - put: gcp-bosh-pool
   104          params:
   105            release: gcp-bosh-pool
   106  
   107  - name: delete-cf
   108    serial_groups: [((stack-name))]
   109    build_logs_to_retain: 100
   110    plan:
   111    - aggregate:
   112      - get: cf-deployment-concourse-tasks
   113      - get: state
   114    - task: delete-cf-deployment
   115      file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
   116      input_mapping:
   117        bbl-state: state
   118      params:
   119        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   120  
   121  - name: delete-infrastructure
   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    - task: bosh-cleanup
   129      file: cf-deployment-concourse-tasks/bosh-cleanup/task.yml
   130      input_mapping:
   131        bbl-state: state
   132      params:
   133        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   134        CLEAN_ALL: true
   135    - task: destroy-infrastructure
   136      file: cf-deployment-concourse-tasks/bbl-destroy/task.yml
   137      input_mapping:
   138        bbl-state: state
   139      params:
   140        BBL_STATE_DIR: ci/infrastructure/((stack-name))
   141        BBL_GCP_SERVICE_ACCOUNT_KEY: ((google-account-creds))
   142      ensure:
   143        put: state
   144        params:
   145          repository: updated-bbl-state
   146          rebase: true