Skip to content

Commit

Permalink
change flux river scripts to work generically for n codegens
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajwal Kiran Kumar authored and Prajwal Kiran Kumar committed Feb 21, 2023
1 parent 0e3f8eb commit 26772a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci_helm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 26772a6

Please sign in to comment.