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 ced11b0
Showing 1 changed file with 6 additions and 8 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 ./$(basename $i)_merged.yaml
done
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
Expand Down

0 comments on commit ced11b0

Please sign in to comment.