From 26772a6c1878e1f0f678c493c40469b58a035354 Mon Sep 17 00:00:00 2001 From: Prajwal Kiran Kumar Date: Tue, 21 Feb 2023 13:18:27 -0600 Subject: [PATCH] change flux river scripts to work generically for n codegens --- .github/workflows/ci_helm_publish.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_helm_publish.yaml b/.github/workflows/ci_helm_publish.yaml index 5e8b4defa..8b65736d1 100644 --- a/.github/workflows/ci_helm_publish.yaml +++ b/.github/workflows/ci_helm_publish.yaml @@ -2,6 +2,8 @@ name: Create and Publish Helm Packages on: push: # Sequence of patterns matched against refs/tags + branches: + - '*' tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10, will be triggered when a new tag is pushed @@ -52,9 +54,8 @@ jobs: .didFinder.rucio.tag = strenv(DOCKER_TAG) | .didFinder.rucio.tag style="double" | .didFinder.CERNOpenData.tag = strenv(DOCKER_TAG) | .didFinder.CERNOpenData.tag style="double" | .transformer.sidecarTag = strenv(DOCKER_TAG) | .transformer.sidecarTag style="double" | - .x509Secrets.tag = strenv(DOCKER_TAG) | .x509Secrets.tag style="double" | - .codeGen.defaultScienceContainerTag = strenv(DOCKER_TAG) | .codeGen.defaultScienceContainerTag style="double" | - .codeGen.tag = strenv(DOCKER_TAG) | .codeGen.tag style="double" ' helm/servicex/values.yaml + .x509Secrets.tag = strenv(DOCKER_TAG) | .x509Secrets.tag style="double" ' helm/servicex/Chart.yaml && + CODEGENS=$(yq '.codeGen | keys | .[]' helm/servicex/values.yaml) && for i in $CODEGENS; do yq -i '.codeGen.[$i].tag=strenv(DOCKER_TAG) | .codeGen.[$i].tag style="double"' helm/servicex/values.yaml && yq -i '.codeGen.[$i].defaultScienceContainerTag=strenv(DOCKER_TAG) | .codeGen.[$i].tag style="double"' helm/servicex/values.yaml; done - name: Create helm package working-directory: ./helm run: |