Skip to content

Commit 9ea4316

Browse files
committed
support amps bumps
1 parent b12d2b0 commit 9ea4316

File tree

6 files changed

+76
-0
lines changed

6 files changed

+76
-0
lines changed

.github/updatecli_amps.tpl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Update AMPs artifacts for version {{ .updatecli_matrix_version }} in {{ .ansible_version_file }}
2+
3+
scms:
4+
acsPackaging:
5+
kind: github
6+
spec:
7+
owner: Alfresco
8+
repository: acs-packaging
9+
branch: {{ .updatecli_amps_release_branch }}
10+
token: {{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}
11+
username: {{ requiredEnv "UPDATECLI_GITHUB_USERNAME" }}
12+
acsEntRepo:
13+
kind: github
14+
spec:
15+
owner: Alfresco
16+
repository: alfresco-enterprise-repo
17+
branch: {{ .updatecli_amps_release_branch }}
18+
token: {{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}
19+
username: {{ requiredEnv "UPDATECLI_GITHUB_USERNAME" }}
20+
acsComRepo:
21+
kind: github
22+
spec:
23+
owner: Alfresco
24+
repository: alfresco-community-repo
25+
branch: {{ .updatecli_amps_release_branch }}
26+
token: {{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}
27+
username: {{ requiredEnv "UPDATECLI_GITHUB_USERNAME" }}
28+
29+
sources:
30+
{{- range $key, $artifact := .artifacts }}
31+
{{- if all $artifact.updatecli_xml_target $artifact.updatecli_scm_id }}
32+
src_{{ $key }}:
33+
name: {{ $key }} artifact
34+
scmid: {{ $artifact.updatecli_scm_id }}
35+
kind: xml
36+
spec:
37+
file: pom.xml
38+
path: "{{ $artifact.updatecli_xml_target }}"
39+
{{- end }}
40+
{{- end }}
41+
42+
targets:
43+
{{- range $key, $artifact := .artifacts }}
44+
{{- if all $artifact.updatecli_xml_target $artifact.updatecli_scm_id $artifact.artifact_version_key }}
45+
yml_{{ $key }}:
46+
name: {{ $key }} yml
47+
kind: yaml
48+
sourceid: src_{{ $key }}
49+
spec:
50+
file: "{{ $.ansible_version_file }}"
51+
key: "{{ $artifact.artifact_version_key }}"
52+
{{- end }}
53+
{{- end }}

.github/updatecli_amps_values.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
artifacts:
2+
alfresco-aos-module:
3+
updatecli_scm_id: acsComRepo
4+
updatecli_xml_target: "/project/properties/alfresco.aos-module.version"
5+
artifact_version_key: "$.acs_play_repository_amp_aos_module_version"
6+
alfresco-device-sync-repo:
7+
updatecli_scm_id: acsPackaging
8+
updatecli_xml_target: "/project/properties/alfresco.desktop-sync.version"
9+
artifact_version_key: "$.acs_play_repository_amp_device_sync_version"
10+
alfresco-googledrive-repo-enterprise:
11+
updatecli_scm_id: acsComRepo
12+
updatecli_xml_target: "/project/properties/alfresco.googledrive.version"
13+
artifact_version_key: "$.acs_play_repository_amp_googledrive_repo_version"
14+
alfresco-googledrive-share:
15+
updatecli_scm_id: acsComRepo
16+
updatecli_xml_target: "/project/properties/alfresco.googledrive.version"
17+
artifact_version_key: "$.acs_play_repository_amp_googledrive_share_version"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
updatecli_matrix_version: current
2+
updatecli_amps_release_branch: "release/23.N"
23
ansible_version_file: vars/acs23.yml

.github/updatecli_maven_73_values.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
updatecli_matrix_version: 7.3.N
2+
updatecli_amps_release_branch: "release/7.3.N"
23
ansible_version_file: vars/acs73.yml
34
artifacts:
45
alfresco-audit-storage-app:

.github/updatecli_maven_74_values.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
updatecli_matrix_version: 7.4.N
2+
updatecli_amps_release_branch: "release/7.4.N"
23
ansible_version_file: vars/acs74.yml
34
artifacts:
45
alfresco-audit-storage-app:

.github/workflows/bumpVersions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
-v alfresco-updatecli/deployments/values/supported-matrix.yaml \
5353
-v .github/updatecli_maven_values.yml \
5454
-v $version_file
55+
updatecli apply --config .github/updatecli_amps.tpl \
56+
-v .github/updatecli_amps_values.yml \
57+
-v $version_file
5558
done
5659
env:
5760
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}

0 commit comments

Comments
 (0)