Skip to content

Commit

Permalink
[ci] refactor CI to match bosh pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Mar 9, 2022
1 parent dcc4c2d commit 8d9a764
Show file tree
Hide file tree
Showing 82 changed files with 2,274 additions and 1,520 deletions.
File renamed without changes.
20 changes: 0 additions & 20 deletions ci/envs/ci-baseline.yml

This file was deleted.

28 changes: 0 additions & 28 deletions ci/envs/ci-cats.yml

This file was deleted.

16 changes: 16 additions & 0 deletions ci/envs/ci-gcp-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kit:
features:
- ((append))
- small-footprint

genesis:
env: ci-vsphere-baseline

params:
disk_type: default
base_domain: (( concat meta._ip_prefix "9.10.netip.cc" ))
postgres_vip: (( concat meta._ip_prefix "9.9" ))
availability_zones: [z1]
haproxy_ips: [ (( concat meta._ip_prefix "9.10" )) ]
haproxy_ips: [10.128.9.10]
17 changes: 17 additions & 0 deletions ci/envs/ci-gcp-cats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
genesis:
env: ci-vsphere-cats

params:
disk_type: default
base_domain: (( concat meta._ip_prefix "8.192.netip.cc" ))
postgres_vip: (( concat meta._ip_prefix "8.193" ))
haproxy_instances: 1
haproxy_ips: [ (( concat meta._ip_prefix "8.192" )) ]
diego_cell_instances: 4

cf_core_network: default
cf_edge_network: default
cf_runtime_network: default
cf_db_network: default

16 changes: 16 additions & 0 deletions ci/envs/ci-gcp-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kit:
features:
- ((append))
- small-footprint

genesis:
env: ci-vsphere-baseline

params:
disk_type: default
base_domain: (( concat meta._ip_prefix "9.10.netip.cc" ))
postgres_vip: (( concat meta._ip_prefix "9.9" ))
availability_zones: [z1]
haproxy_ips: [ (( concat meta._ip_prefix "9.10" )) ]
haproxy_ips: [10.128.9.10]
6 changes: 6 additions & 0 deletions ci/envs/ci-gcp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
genesis:
bosh_env: gcp-uswest2-genesis-ci

meta:
_ip_prefix: "10.4."
16 changes: 16 additions & 0 deletions ci/envs/ci-vsphere-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kit:
features:
- ((append))
- small-footprint

genesis:
env: ci-vsphere-baseline

params:
disk_type: default
base_domain: (( concat meta._ip_prefix "9.10.netip.cc" ))
postgres_vip: (( concat meta._ip_prefix "9.9" ))
availability_zones: [z1]
haproxy_ips: [ (( concat meta._ip_prefix "9.10" )) ]
haproxy_ips: [10.128.9.10]
17 changes: 17 additions & 0 deletions ci/envs/ci-vsphere-cats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
genesis:
env: ci-vsphere-cats

params:
disk_type: default
base_domain: (( concat meta._ip_prefix "8.192.netip.cc" ))
postgres_vip: (( concat meta._ip_prefix "8.193" ))
haproxy_instances: 1
haproxy_ips: [ (( concat meta._ip_prefix "8.192" )) ]
diego_cell_instances: 4

cf_core_network: default
cf_edge_network: default
cf_runtime_network: default
cf_db_network: default

16 changes: 16 additions & 0 deletions ci/envs/ci-vsphere-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
kit:
features:
- ((append))
- small-footprint

genesis:
env: ci-vsphere-baseline

params:
disk_type: default
base_domain: (( concat meta._ip_prefix "9.10.netip.cc" ))
postgres_vip: (( concat meta._ip_prefix "9.9" ))
availability_zones: [z1]
haproxy_ips: [ (( concat meta._ip_prefix "9.10" )) ]
haproxy_ips: [10.128.9.10]
6 changes: 6 additions & 0 deletions ci/envs/ci-vsphere.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
genesis:
bosh_env: snw-genesis-ci

meta:
_ip_prefix: "10.128."
5 changes: 5 additions & 0 deletions ci/envs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
kit:
name: dev
version: latest
features:
- haproxy
- tls
- self-signed
- cf-deployment/operations/enable-service-discovery
80 changes: 38 additions & 42 deletions ci/pipeline/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ meta:
url: (( param "Please specify the full url of the target Concourse CI" ))
pipeline: (( grab meta.name ))

upstream:
package: example # dummy value for things that don't use upstream
path: (( grab meta.upstream.package ))
org: cloudfoundry
repo: (( concat meta.upstream.org "/" meta.upstream.package ))
url: (( concat "https://github.com/" meta.upstream.repo ".git" ))

vault:
url: (( param "Please provide the address of your Vault" ))
token: (( param "Please provide a Vault Token" ))
Expand All @@ -44,17 +51,12 @@ meta:
branch: master
private_key: (( param "Please generate an SSH Deployment Key for this repo and specify it here" ))
access_token: (( param "Please generate a Personal Access Token to be used for creating github releases (do you have a ci-bot?)" ))

credhub:
url: (( param "Please provide a credhub url" ))
username: (( param "Please provide a Credhub username" ))
password: (( param "Please provide a Credhub password" ))

bosh:
uri: (( param "Please specify the Genesis CI BOSH Director URI" ))
cacert: (( param "Please specify the Genesis CI BOSH Director Root CA cert" ))
username: admin
password: (( param "Please specify the Genesis CI BOSH Director admin password" ))
release_notes:
repo: "ci-release-notes"
branch: "main"
file: (( concat meta.name "-release-notes.md" ))
uri: (( concat "[email protected]:" meta.github.owner "/" meta.github.release_notes.repo ))
edit: (( concat "https://github.com/" meta.github.owner "/" meta.github.release_notes.repo "/edit/" meta.github.release_notes.branch "/" meta.github.release_notes.file ))

shout:
topic: (( concat meta.name "-pipeline" ))
Expand All @@ -71,47 +73,41 @@ meta:
pipeline: (( concat meta.url "/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME" ))
build: (( concat meta.shout.links.pipeline "/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME" ))

jobs:
cats:
params:
GENESIS_HONOR_ENV: 1
GIT_NAME: (( grab meta.git.name ))
GIT_EMAIL: (( grab meta.git.email ))
VAULT_URI: (( grab meta.vault.url ))
VAULT_TOKEN: (( grab meta.vault.token ))
KIT_SHORTNAME: (( grab meta.kit ))
BOSH_ENVIRONMENT: (( grab meta.bosh.uri ))
BOSH_CA_CERT: (( grab meta.bosh.cacert ))
BOSH_CLIENT: (( grab meta.bosh.username ))
BOSH_CLIENT_SECRET: (( grab meta.bosh.password ))
CREDHUB_URL: (( grab meta.credhub.url))
CREDHUB_USER: (( grab meta.credhub.username))
CREDHUB_PASSWORD: (( grab meta.credhub.password))
DEPLOYMENT_NAMES: ci-cats
SKIP_CATS: false
FAILFAST: true
VERBOSE: false
CATS_NODES: 6


task_connectivity_params:
GIT_NAME: (( grab meta.git.name ))
GIT_EMAIL: (( grab meta.git.email ))
VAULT_URI: (( grab meta.vault.url ))
VAULT_TOKEN: (( grab meta.vault.token ))
INFRASTRUCTURE: (( grab meta.iaas ))

cats_params:
.: (( inject meta.task_connectivity_params ))
DEPLOY_ENV: (( concat "ci-" meta.iaas "-cats" ))
KIT_SHORTNAME: (( grab meta.kit ))
SKIP_CATS: false
FAILFAST: true
VERBOSE: false
CATS_NODES: 6

groups:
- name: (( grab meta.pipeline ))
jobs:
- build-kit
- spec-tests
- spec-check
- testflight
- upgrade-test
- cats-tests
- pre
- rc
- shipit
- ship-prerelease
- deploy
- upgrade
- acceptance-tests
- prepare
- ship-release

- name: upstream
jobs:
- cf-deployment
- upstream-sync

- name: versions
jobs:
- major
- minor
- patch
- patch
Loading

0 comments on commit 8d9a764

Please sign in to comment.