Skip to content

Commit

Permalink
[ci] Updated upstream manifest modification process
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Oct 6, 2023
1 parent c4b9e37 commit 2049e10
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 18 deletions.
17 changes: 9 additions & 8 deletions ci/pipeline/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,20 @@ meta:
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" ))
manifest:
package: example # dummy value for things that don't use upstream
path: (( grab meta.upstream.manifest.package ))
org: cloudfoundry
repo: (( concat meta.upstream.manifest.org "/" meta.upstream.manifest.package ))
url: (( concat "https://github.com/" meta.upstream.manifest.repo ".git" ))

vault:
url: (( param "Please provide the address of your Vault" ))
token: (( param "Please provide a Vault Token" ))

git:
email: [email protected]
name: Genesis CI Bot
email: ((github.email))
name: ((github.name))

image:
name: ((image/genesis.url))
Expand Down Expand Up @@ -104,7 +105,7 @@ groups:

- name: upstream
jobs:
- upstream-sync
- upstream-manifest

- name: versions
jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
jobs:
- name: upstream-sync
- name: upstream-manifest
public: true
serial: true
plan:
- do:
- in_parallel:
- { get: git, trigger: false, passed: [spec-tests] }
- { get: git-ci, trigger: false}
- { get: upstream, trigger: true }
- task: upstream-sync
file: git-ci/ci/tasks/get-latest-upstream.yml
- { get: upstream-manifest, trigger: true }
- task: upstream-manifest
file: git-ci/ci/tasks/get-latest-upstream-manifest.yml
params:
GIT_EMAIL: (( grab meta.git.email ))
GIT_NAME: (( grab meta.git.name ))
UPSTREAM_PATH: (( grab meta.upstream.path ))
UPSTREAM_REPO: (( grab meta.upstream.repo ))
UPSTREAM_PATH: (( grab meta.upstream.manifest.path ))
UPSTREAM_REPO: (( grab meta.upstream.manifest.repo ))
- put: git
params:
merge: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
resources:
- name: upstream
- name: upstream-manifest
type: git
check_every: 168h
source:
uri: (( grab meta.upstream.url ))
uri: (( grab meta.upstream.manifest.url ))
branch: master
ignore_paths: [ci/*]
File renamed without changes.
5 changes: 4 additions & 1 deletion ci/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ meta:
initial_version: 2.1.0

upstream:
package: cf-deployment
manifest:
package: cf-deployment

bosh:
uri: ((bosh.uri))
Expand Down Expand Up @@ -38,6 +39,8 @@ meta:
main-branch: main
private_key: ((github.private_key))
access_token: ((github.access_token))
name: ((github.name))
email: ((github.email))

shout:
url: ((shout.url))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ outputs:
- name: git

run:
path: git-ci/ci/scripts/get-latest-upstream
path: git-ci/ci/scripts/get-latest-upstream-manifest
10 changes: 10 additions & 0 deletions ci/upstreamrepo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- name: bosh
repo: https://github.com/cloudfoundry/bosh
- name: credhub
repo: https://github.com/pivotal/credhub-release
- name: bpm
repo: https://github.com/cloudfoundry/bpm-release
- name: uaa
repo: https://github.com/cloudfoundry/uaa-release

0 comments on commit 2049e10

Please sign in to comment.