Skip to content

Commit

Permalink
run individual updatecli pipelines per chart as merging on subkey is …
Browse files Browse the repository at this point in the history
…too complex
  • Loading branch information
alxgomz committed Nov 4, 2024
1 parent 62acdae commit 99531a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/bumpVersions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,14 @@ jobs:
ref: ${{ inputs.alfresco-updatecli-ref || env.DEFAULT_BRANCH_NAME }}
path: alfresco-updatecli

- name: Preprocess values file appending existing keys only
- name: Build manifest and run UpdateCli pipelines
shell: bash
run: |
yq '. *? load("alfresco-updatecli/deployments/values/supported-matrix.yaml") |
explode(.)' updatecli-matrix-targets.yaml |
tee ./merged.yaml
- name: updatecli apply
# path to values file must be relative https://github.com/updatecli/updatecli/issues/1253
run: updatecli apply -c alfresco-updatecli/deployments/uber-manifest.tpl -v ./merged.yaml
for i in helm/*/updatecli-matrix-targets.yaml; do CHART=$(basename $(dirname $i))
echo "Building UpdateCli manifest for chart $CHART"
yq '. *? load("alfresco-updatecli/deployments/values/supported-matrix.yaml") | explode(.)' ${i} | tee ./${CHART}_merged.yaml
updatecli apply -c alfresco-updatecli/deployments/uber-manifest.tpl -v ./${CHART}_merged.yaml
done
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ hs_err_pid*

# updatecli workflow
alfresco-updatecli
merged.yaml
*_merged.yaml

_site

0 comments on commit 99531a5

Please sign in to comment.