Skip to content

Commit

Permalink
Make pipeline self-setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshochadel committed Sep 17, 2024
1 parent 300d74b commit 7f88bd6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
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

0 comments on commit 7f88bd6

Please sign in to comment.