github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/ci/infrastructure/hardknox.yml (about)

     1  ---
     2  groups:
     3  - name: create
     4    jobs:
     5    - setup-infrastructure
     6    - deploy-cf
     7  - name: delete
     8    jobs:
     9    - delete-cf
    10    - delete-infrastructure
    11  
    12  resources:
    13  - name: freshen-hardnox
    14    type: time
    15    source:
    16      start: 09:00 PM
    17      stop: 10:00 PM
    18      location: America/Los_Angeles
    19      days: [Saturday]
    20  - name: cf-deployment-concourse-tasks
    21    type: git
    22    source:
    23      uri: https://github.com/cloudfoundry/cf-deployment-concourse-tasks
    24      branch: master
    25  - name: cli-ci
    26    type: git
    27    source:
    28      uri: https://github.com/cloudfoundry/cli
    29      branch: master
    30      path: ci
    31  - name: cf-deployment
    32    type: git
    33    source:
    34      uri: https://github.com/cloudfoundry/cf-deployment
    35      branch: master
    36  - name: ops-files
    37    type: git
    38    source:
    39      uri: https://github.com/cloudfoundry/cf-deployment
    40      branch: master
    41  - name: state
    42    type: git
    43    source:
    44      uri: git@github.com:cloudfoundry/cli-private
    45      private_key: {{cli-private-github-private-key-write}}
    46      branch: master
    47      paths:
    48      - ci/infrastructure/hardknox/bbl-state.json
    49  - name: cf-state
    50    type: git
    51    source:
    52      uri: git@github.com:cloudfoundry/cli-private
    53      private_key: {{cli-private-github-private-key-write}}
    54      branch: master
    55      paths:
    56      - ci/infrastructure/hardknox/deployment-vars.yml
    57  
    58  jobs:
    59  - name: setup-infrastructure
    60    serial_groups: [hardknox]
    61    build_logs_to_retain: 100
    62    plan:
    63    - get: freshen-hardnox
    64      trigger: true
    65    - aggregate:
    66      - get: cf-deployment-concourse-tasks
    67      - get: state
    68    - task: setup-infrastructure
    69      file: cf-deployment-concourse-tasks/bbl-up/task.yml
    70      input_mapping:
    71        bbl-state: state
    72        ops-files: state
    73      params:
    74        BBL_IAAS: gcp
    75        BBL_GCP_SERVICE_ACCOUNT_KEY: {{google_account_creds}}
    76        BBL_GCP_PROJECT_ID: {{gcp_project}}
    77        BBL_GCP_REGION: us-central1
    78        BBL_GCP_ZONE: us-central1-f
    79        BBL_LB_CERT: {{hardknox_cf_ssl_cert}}
    80        BBL_LB_KEY: {{hardknox_cf_ssl_cert_private_key}}
    81        LB_DOMAIN: hardknox.cli.fun
    82        BBL_ENV_NAME: hardknox
    83        BBL_STATE_DIR: ci/infrastructure/hardknox
    84      ensure:
    85        put: state
    86        params:
    87          repository: updated-bbl-state
    88          rebase: true
    89  
    90  - name: deploy-cf
    91    serial_groups: [hardknox]
    92    build_logs_to_retain: 100
    93    plan:
    94    - aggregate:
    95      - get: cf-deployment-concourse-tasks
    96      - get: state
    97        passed: [setup-infrastructure]
    98        trigger: true
    99      - get: cf-state
   100      - get: cf-deployment
   101      - get: ops-files
   102      - get: cli-ci
   103    - task: upload-stemcell
   104      file: cf-deployment-concourse-tasks/bosh-upload-stemcell-from-cf-deployment/task.yml
   105      input_mapping:
   106        bbl-state: state
   107      params:
   108        INFRASTRUCTURE: google
   109        BBL_STATE_DIR: ci/infrastructure/hardknox
   110    - task: copy-ops-files
   111      file: cli-ci/ci/infrastructure/tasks/combine-inputs.yml
   112      input_mapping:
   113        input1: ops-files
   114        input2: cli-ci
   115      params:
   116        COPY_PATHS: "input1/operations/scale-to-one-az.yml input1/operations/tcp-routing-gcp.yml input1/operations/test/add-persistent-isolation-segment-diego-cell.yml input1/operations/use-compiled-releases.yml input2/ci/infrastructure/operations/use-routing-502-fix.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"
   117    - task: deploy-cf
   118      file: cf-deployment-concourse-tasks/bosh-deploy/task.yml
   119      input_mapping:
   120        bbl-state: state
   121        vars-store: cf-state
   122        vars-files: cf-state
   123        ops-files: combine_inputs_output
   124      params:
   125        SYSTEM_DOMAIN: hardknox.cli.fun
   126        OPS_FILES: "tcp-routing-gcp.yml add-persistent-isolation-segment-diego-cell.yml use-compiled-releases.yml use-routing-502-fix.yml cli-isolation-cell-overrides.yml default-app-memory.yml skip-ssl-override.yml scale-to-one-az.yml diego-cell-instances.yml"
   127        VARS_STORE_FILE: ci/infrastructure/hardknox/deployment-vars.yml
   128        BBL_STATE_DIR: ci/infrastructure/hardknox
   129      ensure:
   130        put: cf-state
   131        params:
   132          repository: updated-vars-store
   133          rebase: true
   134  
   135  - name: delete-cf
   136    serial_groups: [hardknox]
   137    build_logs_to_retain: 100
   138    plan:
   139    - aggregate:
   140      - get: cf-deployment-concourse-tasks
   141      - get: state
   142    - task: delete-cf-deployment
   143      file: cf-deployment-concourse-tasks/bosh-delete-deployment/task.yml
   144      input_mapping:
   145        bbl-state: state
   146      params:
   147        BBL_STATE_DIR: ci/infrastructure/hardknox
   148  
   149  - name: delete-infrastructure
   150    serial_groups: [hardknox]
   151    build_logs_to_retain: 100
   152    plan:
   153    - aggregate:
   154      - get: cf-deployment-concourse-tasks
   155      - get: state
   156    - task: destroy-infrastructure
   157      file: cf-deployment-concourse-tasks/bbl-destroy/task.yml
   158      input_mapping:
   159        bbl-state: state
   160      params:
   161        BBL_STATE_DIR: ci/infrastructure/hardknox
   162      ensure:
   163        put: state
   164        params:
   165          repository: updated-bbl-state
   166          rebase: true