Skip to content

Commit

Permalink
Merge pull request #20 from cloud-gov/cw5
Browse files Browse the repository at this point in the history
Remove hardcoded release version, url, sha1
  • Loading branch information
cweibel authored May 6, 2024
2 parents 75180d7 + f87c885 commit fda36d1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
8 changes: 0 additions & 8 deletions bosh/opsfiles/releases.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
- path: /releases/name=app-autoscaler?
type: replace
value:
name: app-autoscaler
version: "12.2.2"
url: "https://bosh.io/d/github.com/cloudfoundry-incubator/app-autoscaler-release?v=12.2.2"
sha1: "a1fffce71219318d1fb27ec5fc3ff84e757337ed"

# Not used
- type: remove
path: /releases/name=postgres
24 changes: 22 additions & 2 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
plan:
- in_parallel:
- get: app-autoscaler-release
- get: release
trigger: true
- get: autoscaler-manifests
resource: autoscaler-manifests
trigger: true
Expand All @@ -28,6 +30,8 @@ jobs:
- put: autoscaler-deployment-development
params: &deploy-params
manifest: app-autoscaler-release/templates/app-autoscaler.yml
releases:
- release/app-autoscaler-v*.tgz
stemcells:
- cf-stemcell-jammy/*.tgz
ops_files:
Expand Down Expand Up @@ -269,6 +273,9 @@ jobs:
- get: app-autoscaler-release
passed: [deploy-as-development]
trigger: true
- get: release
passed: [deploy-as-development]
trigger: true
- get: autoscaler-manifests
resource: autoscaler-manifests
passed: [acceptance-tests-api-development, acceptance-tests-broker-development ]
Expand All @@ -284,6 +291,8 @@ jobs:
- put: autoscaler-deployment-staging
params:
manifest: app-autoscaler-release/templates/app-autoscaler.yml
releases:
- release/app-autoscaler-v*.tgz
stemcells:
- cf-stemcell-jammy/*.tgz
ops_files:
Expand Down Expand Up @@ -462,6 +471,9 @@ jobs:
- get: app-autoscaler-release
passed: [deploy-as-staging]
trigger: true
- get: release
passed: [deploy-as-staging]
trigger: true
- get: autoscaler-manifests
resource: autoscaler-manifests
passed: [acceptance-tests-api-staging, acceptance-tests-broker-staging]
Expand All @@ -477,6 +489,8 @@ jobs:
- put: autoscaler-deployment-production
params:
manifest: app-autoscaler-release/templates/app-autoscaler.yml
releases:
- release/app-autoscaler-v*.tgz
stemcells:
- cf-stemcell-jammy/*.tgz
ops_files:
Expand Down Expand Up @@ -651,14 +665,14 @@ jobs:
# Resources

resources:
- name: app-autoscaler-release
- name: app-autoscaler-release #Used as input for folder structure for upstream ops files
type: git
source:
uri: https://github.com/cloudfoundry/app-autoscaler-release
branch: main
tag_filter: "v*"

- name: autoscaler-manifests
- name: autoscaler-manifests #Used as input for folder structure for custom ops files
type: git
source:
uri: https://github.com/cloud-gov/cg-deploy-autoscaler.git
Expand All @@ -667,6 +681,12 @@ resources:
- ci/*
- bosh/*

- name: release #Used to detect when new bosh releases are cut
type: github-release
source:
owner: cloudfoundry
repository: app-autoscaler-release


#- name: autoscaler-manifests-test
# type: git
Expand Down

0 comments on commit fda36d1

Please sign in to comment.