-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcodefresh-release.yml
114 lines (111 loc) · 3.95 KB
/
codefresh-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: 1.0
stages:
- prepare
- ob-ui
- ob-analytics
- openbanking-reference-implementation
indicators:
- environment: &global_env
- FR_PRIVATE_REPO_USER=${{FR_PRIVATE_REPO_USER}}
- FR_PRIVATE_REPO_PASSWORD=${{FR_PRIVATE_REPO_PASSWORD}}
- GITHUB_GPG_KEY_ID=${{GITHUB_GPG_KEY_ID}}
- GITHUB_GPG_KEY=${{GITHUB_GPG_KEY}}
- GITHUB_ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
steps:
main_clone:
title: Cloning main repository...
type: git-clone
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_BRANCH}}'
clone-ob-ui:
type: git-clone
stage: ob-ui
title: Git Clone ob-ui repository
repo: ForgeCloud/ob-ui
git: github-bot
revision: '${{CF_BRANCH}}'
disable-include-administrator-for-ob-ui: &disable_inc_admin
title: "disable for ob-ui"
stage: ob-ui
image: benjjefferies/branch-protection-bot
environment:
- ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
- OWNER=forgecloud
- REPO=ob-ui
- ENFORCE_ADMINS=false
set-ob-ui-version:
title: set ob-ui package version
image: eu.gcr.io/openbanking-214714/forgecloud/openbanking/obdeployhelper:master
stage: ob-ui
commands:
- ./ci/release-a-package.sh ob-ui .
enable-include-administrator-for-ob-ui: &enable_inc_admin
title: "enable for ob-ui"
stage: ob-ui
image: benjjefferies/branch-protection-bot
environment:
- ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
- OWNER=forgecloud
- REPO=ob-ui
- ENFORCE_ADMINS=true
clone-ob-analytics:
type: git-clone
stage: ob-analytics
title: git clone ob-analytics
repo: ForgeCloud/ob-analytics
git: github-bot
revision: '${{CF_BRANCH}}'
disable-include-administrator-for-ob-analytics:
<<: *disable_inc_admin
title: "Enable push to master for ob-analytics"
stage: ob-analytics
environment:
- ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
- OWNER=forgecloud
- REPO=ob-analytics
- ENFORCE_ADMINS=false
set-ob-analytics-version:
title: set ob-analytics package version
image: eu.gcr.io/openbanking-214714/forgecloud/openbanking/obdeployhelper:master
stage: ob-analytics
commands:
- ./ci/release-a-package.sh ob-analytics ./forgerock-openbanking-analytics-ui
enable-include-administrator-for-ob-analytics:
<<: *enable_inc_admin
title: "Disable push to master"
stage: ob-analytics
environment:
- ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
- OWNER=forgecloud
- REPO=ob-analytics
- ENFORCE_ADMINS=true
disable-include-administrator-for-ob-reference-implemenation:
<<: *disable_inc_admin
title: "Enable push to master for openbanking-reference-implementation"
stage: openbanking-reference-implementation
environment:
- ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
- OWNER=forgecloud
- REPO=openbanking-reference-implementation
- ENFORCE_ADMINS=false
set-ob-reference-implemenation-version:
title: set ob-analytics package version
image: eu.gcr.io/openbanking-214714/ob-release:latest
stage: openbanking-reference-implementation
commands:
- ./ci/release-mvn-project.sh openbanking-reference-implementation
environment:
- FR_PRIVATE_REPO_USER=${{FR_PRIVATE_REPO_USER}}
- FR_PRIVATE_REPO_PASSWORD=${{FR_PRIVATE_REPO_PASSWORD}}
- GITHUB_GPG_KEY_ID=${{GITHUB_GPG_KEY_ID}}
- GITHUB_GPG_KEY=${{GITHUB_GPG_KEY}}
- GITHUB_ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
enable-include-administrator-for-openbanking-reference-implementation:
<<: *enable_inc_admin
title: "Disable push to master"
stage: openbanking-reference-implementation
environment:
- ACCESS_TOKEN=${{GITHUB_ACCESS_TOKEN}}
- OWNER=forgecloud
- REPO=openbanking-reference-implementation
- ENFORCE_ADMINS=true