Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSB pipeline is being split out to cloud-gov/csb repo #944

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
318 changes: 0 additions & 318 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,104 +229,6 @@ jobs:
<<: *tf-development
TERRAFORM_ACTION: apply

- name: terraform-plan-apps-development
plan:
- in_parallel:
- get: terraform-templates
resource: terraform-config
trigger: true
- get: src
resource: src
trigger: false
passed: [set-self]
# Changes to the iaas state file trigger a build. This is not a step
# input because the state is accessed separately using a
# terraform_remote_state data source.
- get: terraform-yaml
resource: terraform-yaml-development
trigger: true
- get: pipeline-tasks
- get: general-task
- get: csb-image
trigger: true
- get: csb-docproxy-image
trigger: true
- load_var: csb-image-repository
file: csb-image/repository
- load_var: csb-image-digest
file: csb-image/digest
- load_var: csb-docproxy-image-repository
file: csb-docproxy-image/repository
- load_var: csb-docproxy-image-digest
file: csb-docproxy-image/digest
- task: terraform-plan
image: general-task
file: terraform-templates/terraform/terraform-apply.yml
params: &tf-apps-development
TERRAFORM_ACTION: plan
TEMPLATE_SUBDIR: terraform/stacks/apps
STACK_NAME: cf-apps-development
S3_TFSTATE_BUCKET: ((tf-state-bucket))
AWS_DEFAULT_REGION: ((aws-region))
CF_API_URL: ((cf-api-url-development))
CF_CLIENT_ID: ((cf-client-id-development))
CF_CLIENT_SECRET: ((cf-client-secret-development))
TF_VAR_csb_aws_region_commercial: ((csb-aws-region-commercial))
TF_VAR_csb_aws_region_govcloud: ((aws-region))
TF_VAR_csb_aws_ses_default_zone: appmail.dev.us-gov-west-1.aws-us-gov.cloud.gov
TF_VAR_csb_broker_route_domain: ((csb-broker-route-domain-development))
TF_VAR_csb_docker_image_name: "((.:csb-image-repository))"
TF_VAR_csb_docker_image_version: "@((.:csb-image-digest))"
TF_VAR_csb_docproxy_docker_image_name: "((.:csb-docproxy-image-repository))"
TF_VAR_csb_docproxy_docker_image_version: "@((.:csb-docproxy-image-digest))"
TF_VAR_csb_docproxy_domain: dev.us-gov-west-1.aws-us-gov.cloud.gov
TF_VAR_csb_org_name: ((csb-org-name))
TF_VAR_csb_space_name: ((csb-space-name))
TF_VAR_external_remote_state_reader_access_key_id: ((development-tf-state-access-key-id))
TF_VAR_external_remote_state_reader_region: ((development-tf-state-region))
TF_VAR_external_remote_state_reader_secret_access_key: ((development-tf-state-secret-access-key))
TF_VAR_external_stack_name: external-development
TF_VAR_remote_state_bucket_external: ((tf-state-bucket-external))
TF_VAR_remote_state_bucket_iaas: ((tf-state-bucket))
TF_VAR_stack_name: development
- put: slack
params:
text_file: terraform-state/message.txt
text: |
:terraform: $BUILD_JOB_NAME needs review
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details>
channel: "#cg-platform-news"
username: ((slack-username))
icon_url: ((slack-icon-url))

- name: terraform-apply-apps-development
plan:
- in_parallel:
- get: terraform-templates
resource: terraform-config
passed: [terraform-plan-apps-development]
trigger: true
- get: pipeline-tasks
- get: general-task
- get: csb-image
trigger: true
- get: csb-docproxy-image
trigger: true
- load_var: csb-image-repository
file: csb-image/repository
- load_var: csb-image-digest
file: csb-image/digest
- load_var: csb-docproxy-image-repository
file: csb-docproxy-image/repository
- load_var: csb-docproxy-image-digest
file: csb-docproxy-image/digest
- task: terraform-apply
image: general-task
file: terraform-templates/terraform/terraform-apply.yml
params:
<<: *tf-apps-development
TERRAFORM_ACTION: apply

- name: uaa-smoke-tests-development
plan:
- in_parallel:
Expand Down Expand Up @@ -1012,101 +914,6 @@ jobs:
<<: *tf-staging
TERRAFORM_ACTION: apply

- name: terraform-plan-apps-staging
plan:
- in_parallel:
- get: terraform-templates
resource: terraform-config
trigger: true
passed: [terraform-apply-apps-development]
# Changes to the iaas state file trigger a build. This is not a step
# input because the state is accessed separately using a
# terraform_remote_state data source.
- get: terraform-yaml
resource: terraform-yaml-staging
trigger: true
- get: pipeline-tasks
- get: general-task
- get: csb-image
trigger: true
- get: csb-docproxy-image
trigger: true
- load_var: csb-image-repository
file: csb-image/repository
- load_var: csb-image-digest
file: csb-image/digest
- load_var: csb-docproxy-image-repository
file: csb-docproxy-image/repository
- load_var: csb-docproxy-image-digest
file: csb-docproxy-image/digest
- task: terraform-plan
image: general-task
file: terraform-templates/terraform/terraform-apply.yml
params: &tf-apps-staging
TERRAFORM_ACTION: plan
TEMPLATE_SUBDIR: terraform/stacks/apps
STACK_NAME: cf-apps-staging
S3_TFSTATE_BUCKET: ((tf-state-bucket))
AWS_DEFAULT_REGION: ((aws-region))
CF_API_URL: ((cf-api-url-staging))
CF_CLIENT_ID: ((cf-client-id-staging))
CF_CLIENT_SECRET: ((cf-client-secret-staging))
TF_VAR_csb_aws_region_commercial: ((csb-aws-region-commercial))
TF_VAR_csb_aws_region_govcloud: ((aws-region))
TF_VAR_csb_aws_ses_default_zone: appmail.fr-stage.cloud.gov
TF_VAR_csb_broker_route_domain: ((csb-broker-route-domain-staging))
TF_VAR_csb_docker_image_name: "((.:csb-image-repository))"
TF_VAR_csb_docker_image_version: "@((.:csb-image-digest))"
TF_VAR_csb_docproxy_docker_image_name: "((.:csb-docproxy-image-repository))"
TF_VAR_csb_docproxy_docker_image_version: "@((.:csb-docproxy-image-digest))"
TF_VAR_csb_docproxy_domain: fr-stage.cloud.gov
TF_VAR_csb_org_name: ((csb-org-name))
TF_VAR_csb_space_name: ((csb-space-name))
TF_VAR_external_remote_state_reader_access_key_id: ((staging-tf-state-access-key-id))
TF_VAR_external_remote_state_reader_region: ((staging-tf-state-region))
TF_VAR_external_remote_state_reader_secret_access_key: ((staging-tf-state-secret-access-key))
TF_VAR_external_stack_name: external-staging
TF_VAR_remote_state_bucket_external: ((tf-state-bucket-external))
TF_VAR_remote_state_bucket_iaas: ((tf-state-bucket))
TF_VAR_stack_name: staging
- put: slack
params:
text_file: terraform-state/message.txt
text: |
:terraform: $BUILD_JOB_NAME needs review
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details>
channel: "#cg-platform-news"
username: ((slack-username))
icon_url: ((slack-icon-url))

- name: terraform-apply-apps-staging
plan:
- in_parallel:
- get: terraform-templates
resource: terraform-config
trigger: true
passed: [terraform-plan-apps-staging]
- get: pipeline-tasks
- get: general-task
- get: csb-image
trigger: true
- get: csb-docproxy-image
trigger: true
- load_var: csb-image-repository
file: csb-image/repository
- load_var: csb-image-digest
file: csb-image/digest
- load_var: csb-docproxy-image-repository
file: csb-docproxy-image/repository
- load_var: csb-docproxy-image-digest
file: csb-docproxy-image/digest
- task: terraform-apply
image: general-task
file: terraform-templates/terraform/terraform-apply.yml
params:
<<: *tf-apps-staging
TERRAFORM_ACTION: apply

- name: smoke-tests-staging
serial_groups: [staging]
plan:
Expand Down Expand Up @@ -1689,101 +1496,6 @@ jobs:
<<: *tf-production
TERRAFORM_ACTION: apply

- name: terraform-plan-apps-production
plan:
- in_parallel:
- get: terraform-templates
resource: terraform-config
passed: [terraform-apply-apps-staging]
trigger: true
# Changes to the iaas state file trigger a build. This is not a step
# input because the state is accessed separately using a
# terraform_remote_state data source.
- get: terraform-yaml
resource: terraform-yaml-production
trigger: true
- get: pipeline-tasks
- get: general-task
- get: csb-image
trigger: true
- get: csb-docproxy-image
trigger: true
- load_var: csb-image-repository
file: csb-image/repository
- load_var: csb-image-digest
file: csb-image/digest
- load_var: csb-docproxy-image-repository
file: csb-docproxy-image/repository
- load_var: csb-docproxy-image-digest
file: csb-docproxy-image/digest
- task: terraform-plan
image: general-task
file: terraform-templates/terraform/terraform-apply.yml
params: &tf-apps-production
TERRAFORM_ACTION: plan
TEMPLATE_SUBDIR: terraform/stacks/apps
STACK_NAME: cf-apps-production
S3_TFSTATE_BUCKET: ((tf-state-bucket))
AWS_DEFAULT_REGION: ((aws-region))
CF_API_URL: ((cf-api-url-production))
CF_CLIENT_ID: ((cf-client-id-production))
CF_CLIENT_SECRET: ((cf-client-secret-production))
TF_VAR_csb_aws_region_commercial: ((csb-aws-region-commercial))
TF_VAR_csb_aws_region_govcloud: ((aws-region))
TF_VAR_csb_aws_ses_default_zone: appmail.cloud.gov
TF_VAR_csb_broker_route_domain: ((csb-broker-route-domain-production))
TF_VAR_csb_docker_image_name: "((.:csb-image-repository))"
TF_VAR_csb_docker_image_version: "@((.:csb-image-digest))"
TF_VAR_csb_docproxy_docker_image_name: "((.:csb-docproxy-image-repository))"
TF_VAR_csb_docproxy_docker_image_version: "@((.:csb-docproxy-image-digest))"
TF_VAR_csb_docproxy_domain: fr.cloud.gov
TF_VAR_csb_docproxy_instances: 2
TF_VAR_csb_org_name: ((csb-org-name))
TF_VAR_csb_space_name: ((csb-space-name))
TF_VAR_external_remote_state_reader_access_key_id: ((production-tf-state-access-key-id))
TF_VAR_external_remote_state_reader_region: ((production-tf-state-region))
TF_VAR_external_remote_state_reader_secret_access_key: ((production-tf-state-secret-access-key))
TF_VAR_external_stack_name: external-production
TF_VAR_remote_state_bucket_external: ((tf-state-bucket-external))
TF_VAR_remote_state_bucket_iaas: ((tf-state-bucket))
TF_VAR_stack_name: production
- put: slack
params:
text_file: terraform-state/message.txt
text: |
:terraform: $BUILD_JOB_NAME needs review
<$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details>
channel: "#cg-platform"
username: ((slack-username))
icon_url: ((slack-icon-url))

- name: terraform-apply-apps-production
plan:
- in_parallel:
- get: terraform-templates
resource: terraform-config
passed: [terraform-plan-apps-production]
- get: pipeline-tasks
- get: general-task
- get: csb-image
trigger: true
- get: csb-docproxy-image
trigger: true
- load_var: csb-image-repository
file: csb-image/repository
- load_var: csb-image-digest
file: csb-image/digest
- load_var: csb-docproxy-image-repository
file: csb-docproxy-image/repository
- load_var: csb-docproxy-image-digest
file: csb-docproxy-image/digest
- task: terraform-apply
image: general-task
file: terraform-templates/terraform/terraform-apply.yml
params:
<<: *tf-apps-production
TERRAFORM_ACTION: apply

- name: smoke-tests-production
serial_groups: [production]
plan:
Expand Down Expand Up @@ -2035,24 +1747,6 @@ resources:
aws_region: us-gov-west-1
tag: latest

- name: csb-image
type: registry-image
source:
aws_access_key_id: ((ecr_aws_key))
aws_secret_access_key: ((ecr_aws_secret))
repository: csb
aws_region: us-gov-west-1
tag: latest

- name: csb-docproxy-image
type: registry-image
source:
aws_access_key_id: ((ecr_aws_key))
aws_secret_access_key: ((ecr_aws_secret))
repository: csb-docproxy
aws_region: us-gov-west-1
tag: latest

resource_types:
- name: registry-image
type: registry-image
Expand Down Expand Up @@ -2150,12 +1844,6 @@ groups:
- uaa-monitor-account-creation-production
- tic-smoke-tests-production
- test-space-egress-production
- terraform-plan-apps-development
- terraform-apply-apps-development
- terraform-plan-apps-staging
- terraform-apply-apps-staging
- terraform-plan-apps-production
- terraform-apply-apps-production
- name: development
jobs:
- set-self
Expand All @@ -2169,8 +1857,6 @@ groups:
- smoke-tests-development
- test-space-egress-development
- test-headers-development
- terraform-plan-apps-development
- terraform-apply-apps-development
- name: staging
jobs:
- set-self
Expand All @@ -2184,8 +1870,6 @@ groups:
- smoke-tests-staging
- acceptance-tests-staging
- test-space-egress-staging
- terraform-plan-apps-staging
- terraform-apply-apps-staging
- name: production
jobs:
- set-self
Expand All @@ -2199,5 +1883,3 @@ groups:
- uaa-monitor-account-creation-production
- tic-smoke-tests-production
- test-space-egress-production
- terraform-plan-apps-production
- terraform-apply-apps-production
Loading