Skip to content

Commit 99cb1b4

Browse files
committed
stub first manifest
1 parent 609e0b3 commit 99cb1b4

File tree

9 files changed

+166
-482
lines changed

9 files changed

+166
-482
lines changed

β€Ž.github/updatecli_maven.tplβ€Ž

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update Maven artifacts for version {{ .updatecli_matrix_version }}
2+
3+
sources:
4+
{{- range $key, $artifact := .artifacts }}
5+
{{- if all $artifact.updatecli_matrix_component_key $artifact.artifact_name_file $artifact.artifact_name_key $artifact.artifact_version_key }}
6+
src_{{ $key }}_artifact_name:
7+
name: {{ $key }} artifact name
8+
kind: yaml
9+
spec:
10+
file: {{ $artifact.artifact_name_file }}
11+
key: {{ $artifact.artifact_name_key }}
12+
src_{{ $key }}:
13+
name: {{ $key }} artifact
14+
kind: maven
15+
spec:
16+
repository: {{ requiredEnv "NEXUS_USERNAME" }}:{{ requiredEnv "NEXUS_PASSWORD" }}@nexus.alfresco.com/nexus/repository/{{ $artifact.artifact_repository_name | default $.ansible_default_repository_name }}
17+
groupid: {{ $artifact.artifact_group_id | default $.ansible_default_group_id }}
18+
artifactid: '{{ source (printf "src_%s_artifact_name" $key) }}'
19+
dependson:
20+
- src_{{ $key }}_artifact_name
21+
{{- $matrix_filter := index $ "matrix" $.updatecli_matrix_version $artifact.updatecli_matrix_component_key }}
22+
{{- if $matrix_filter }}
23+
{{- $pattern := index $matrix_filter "pattern" }}
24+
{{- $version := index $matrix_filter "version" }}
25+
versionFilter:
26+
kind: {{ if $pattern }}regex{{ else }}semver{{ end }}
27+
pattern: >-
28+
{{- if $pattern }}
29+
^{{ $version }}{{ $pattern }}$
30+
{{- else }}
31+
{{ $version }}
32+
{{- end }}
33+
{{- end }}
34+
{{- end }}
35+
{{- end }}
36+
37+
targets:
38+
{{- range $key, $artifact := .artifacts }}
39+
{{- if all $artifact.updatecli_matrix_component_key $.artifact_version_file $artifact.artifact_version_key }}
40+
yml_{{ $key }}:
41+
name: {{ $key }} yml
42+
kind: yaml
43+
sourceid: src_{{ $key }}
44+
spec:
45+
file: "{{ $.artifact_version_file }}"
46+
key: "{{ $artifact.artifact_version_key }}"
47+
{{- end }}
48+
{{- end }}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
updatecli_matrix_version: current
2+
ansible_version_file: vars/acs23.yml
3+
ansible_default_repository_name: private
4+
ansible_default_group_id: org.alfresco
5+
artifacts:
6+
# alfresco-control-center:
7+
# artifact_name_file: playbooks/group_vars/acc.yml
8+
# artifact_name_key: $.acc_artifact_id
9+
# artifact_version_key: $.acs_play_acc_version
10+
# updatecli_matrix_component_key: adminApp
11+
# alfresco-digital-workspace:
12+
# artifact_name_file: playbooks/group_vars/adw.yml
13+
# artifact_name_key: $.adw_artifact_id
14+
# artifact_version_key: $.acs_play_adw_version
15+
# updatecli_matrix_component_key: adw
16+
alfresco-audit-storage-app:
17+
artifact_name_file: playbooks/group_vars/audit_storage.yml
18+
artifact_name_key: $.audit_storage_artifact_name
19+
artifact_version_key: $.acs_play_audit_storage_version
20+
updatecli_matrix_component_key: audit-storage
21+
alfresco-search-enterprise:
22+
artifact_name_file: playbooks/group_vars/search_enterprise.yml
23+
artifact_name_key: $.acs_play_search_enterprise_artifact_name
24+
artifact_version_key: $.acs_play_search_enterprise_version
25+
updatecli_matrix_component_key: search-enterprise
26+
alfresco-search-services:
27+
artifact_name_file: playbooks/group_vars/search.yml
28+
artifact_name_key: $.acs_play_search_artifact_name
29+
artifact_version_key: $.acs_play_search_version
30+
updatecli_matrix_component_key: search
31+
alfresco-sync-service:
32+
artifact_name_file: playbooks/group_vars/syncservice.yml
33+
artifact_name_key: $.acs_play_sync_artifact_name
34+
artifact_version_key: $.acs_play_sync_version
35+
updatecli_matrix_component_key: sync
36+
artifact_group_id: org.alfresco.services.sync
37+
alfresco-transform-core-aio:
38+
artifact_name_file: playbooks/group_vars/transformers.yml
39+
artifact_name_key: $.acs_play_transformers_aio_artifact_name
40+
artifact_version_key: $.acs_play_transformers_aio_version
41+
updatecli_matrix_component_key: tengine-aio
42+
alfresco-transform-router:
43+
artifact_name_file: playbooks/group_vars/transformers.yml
44+
artifact_name_key: $.acs_play_trouter_artifact_name
45+
artifact_version_key: $.acs_play_trouter_version
46+
updatecli_matrix_component_key: trouter
47+
alfresco-shared-file-store-controller:
48+
artifact_name_file: playbooks/group_vars/transformers.yml
49+
artifact_name_key: $.acs_play_sfs_artifact_name
50+
artifact_version_key: $.acs_play_sfs_version
51+
updatecli_matrix_component_key: sfs
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
name: Bump versions
3+
run-name: Bump using alfresco-updatecli/${{ inputs.alfresco-updatecli-ref || 'master' }}
4+
5+
on:
6+
push:
7+
paths:
8+
- .github/workflows/bumpVersions.yml
9+
- .github/updatecli_maven.tpl
10+
- .github/updatecli_maven_values.yml
11+
workflow_dispatch:
12+
inputs:
13+
alfresco-updatecli-ref:
14+
description: "The version to use for alfresco/alfresco-updatecli configs"
15+
type: string
16+
default: master
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name || github.run_id }}
20+
cancel-in-progress: true
21+
22+
env:
23+
DEFAULT_BRANCH_NAME: master
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-latest
28+
name: Bump versions
29+
if: github.actor != 'dependabot[bot]'
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
with:
34+
token: ${{ secrets.BOT_GITHUB_TOKEN }}
35+
36+
- name: Install Updatecli
37+
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
38+
39+
- name: Checkout updatecli configs
40+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+
with:
42+
repository: alfresco/alfresco-updatecli
43+
ref: ${{ inputs.alfresco-updatecli-ref || 'master' }}
44+
path: alfresco-updatecli
45+
46+
- name: Updatecli apply
47+
shell: bash
48+
run: >-
49+
updatecli apply --config .github/updatecli_maven.tpl
50+
-v alfresco-updatecli/deployments/values/supported-matrix.yaml
51+
-v .github/updatecli_maven_values.yml
52+
env:
53+
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
54+
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
55+
UPDATECLI_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
56+
UPDATECLI_GITHUB_USERNAME: ${{ vars.BOT_GITHUB_USERNAME}}
57+
58+
- name: Git Auto Commit
59+
uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0
60+
with:
61+
commit_message: |
62+
πŸ›  Updatecli pipeline artifacts bump
63+
commit_user_name: ${{ vars.BOT_GITHUB_USERNAME }}
64+
commit_user_email: ${{ vars.BOT_GITHUB_EMAIL }}
65+
branch: ${{ github.ref_name == env.DEFAULT_BRANCH_NAME && 'updatecli-bump-versions' || github.ref_name }}
66+
create_branch: ${{ github.ref_name == env.DEFAULT_BRANCH_NAME }}
67+
push_options: ${{ github.ref_name == env.DEFAULT_BRANCH_NAME && '--force' || '' }}

β€Žscripts/updatecli/updatecli_acs23.ymlβ€Ž

Lines changed: 0 additions & 38 deletions
This file was deleted.

β€Žscripts/updatecli/updatecli_acs73.ymlβ€Ž

Lines changed: 0 additions & 35 deletions
This file was deleted.

β€Žscripts/updatecli/updatecli_acs74.ymlβ€Ž

Lines changed: 0 additions & 35 deletions
This file was deleted.

β€Žscripts/updatecli/updatecli_base.ymlβ€Ž

Lines changed: 0 additions & 18 deletions
This file was deleted.

β€Žscripts/updatecli/updatecli_community.ymlβ€Ž

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
Β (0)