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

Make pipeline self-setting #892

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions ci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cf:
development:
name: cf-development
smoke-tests: smoke_tests
staging:
name: cf-staging
smoke-tests: smoke_tests
production:
name: cf-production
smoke-tests: smoke_tests
# Credhub does not allow empty values, so these variables are defined here. If
# you want to set these to something non-empty values, add them to Credhub.
# See uaa-audit-whitelist-production in Credhub for reference.
uaa-audit-whitelist-development: ""
uaa-audit-whitelist-staging: ""
38 changes: 34 additions & 4 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
---
jobs:
- name: set-self
serial_groups: [development, staging, production]
plan:
- get: src
trigger: true
- set_pipeline: self
file: src/ci/pipeline.yml
var_files:
- src/ci/config.yml
- name: deploy-cf-development
serial_groups: [development]
serial: true
Expand All @@ -13,6 +22,10 @@ jobs:
- get: cf-manifests
resource: cf-manifests
trigger: true
- get: src
resource: src
trigger: false
passed: [set-self]
- get: terraform-yaml
resource: terraform-yaml-development
- get: cf-stemcell-jammy
Expand Down Expand Up @@ -158,6 +171,10 @@ jobs:
- get: terraform-templates
resource: terraform-config
trigger: true
- get: src
resource: src
trigger: false
passed: [set-self]
- get: terraform-yaml
resource: terraform-yaml-development
trigger: true
Expand Down Expand Up @@ -1592,19 +1609,28 @@ resources:
type: git
source:
commit_verification_keys: ((cloud-gov-pgp-keys))
uri: ((pipeline-tasks-git-url))
branch: ((pipeline-tasks-git-branch))
uri: https://github.com/cloud-gov/cg-pipeline-tasks.git
branch: main

- name: slack
type: slack-notification
source:
url: ((slack-webhook-url))

- name: src
type: git
source:
commit_verification_keys: ((cloud-gov-pgp-keys))
uri: https://github.com/cloud-gov/cg-deploy-cf.git
branch: main
paths:
- ci/*

- name: cf-manifests
type: git
source:
commit_verification_keys: ((cloud-gov-pgp-keys))
uri: ((cf-manifests-git-url))
uri: https://github.com/cloud-gov/cg-deploy-cf.git
branch: main
paths:
- ci/*
Expand All @@ -1614,7 +1640,7 @@ resources:
type: git
source:
commit_verification_keys: ((cloud-gov-pgp-keys))
uri: ((cf-manifests-git-url))
uri: https://github.com/cloud-gov/cg-deploy-cf.git
branch: main
paths:
- terraform/*
Expand Down Expand Up @@ -1777,6 +1803,7 @@ resource_types:
groups:
- name: all
jobs:
- set-self
- deploy-cf-development
- terraform-plan-development
- terraform-apply-development
Expand Down Expand Up @@ -1808,6 +1835,7 @@ groups:
- test-space-egress-production
- name: development
jobs:
- set-self
- deploy-cf-development
- terraform-plan-development
- terraform-apply-development
Expand All @@ -1820,6 +1848,7 @@ groups:
- test-headers-development
- name: staging
jobs:
- set-self
- deploy-cf-staging
- terraform-plan-staging
- terraform-apply-staging
Expand All @@ -1832,6 +1861,7 @@ groups:
- test-space-egress-staging
- name: production
jobs:
- set-self
- plan-cf-production
- deploy-cf-production
- terraform-plan-production
Expand Down