Skip to content

Commit ee3f245

Browse files
Prajwal  Kiran KumarPrajwal  Kiran Kumar
Prajwal Kiran Kumar
authored and
Prajwal Kiran Kumar
committed
Fixes for helm release
1 parent f3c3b49 commit ee3f245

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

Diff for: .github/workflows/ci_helm_publish.yaml

+22-24
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66

77
name: Create and Publish Helm Packages
88
jobs:
9-
# call-ci-servicex:
10-
# uses: ./.github/workflows/ci_servicex.yaml
11-
# secrets: inherit
12-
# call-ci-helm-tests:
13-
# uses: ./.github/workflows/ci_helm_tests.yaml
14-
# secrets: inherit
9+
call-ci-servicex:
10+
uses: ./.github/workflows/ci_servicex.yaml
11+
secrets: inherit
12+
call-ci-helm-tests:
13+
uses: ./.github/workflows/ci_helm_tests.yaml
14+
secrets: inherit
1515
build:
1616
name: Create Release
17-
# needs: [call-ci-servicex, call-ci-helm-tests]
17+
needs: [call-ci-servicex, call-ci-helm-tests]
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout code
@@ -41,40 +41,38 @@ jobs:
4141
uses: mikefarah/yq@master
4242
with:
4343
cmd: |
44-
yq -i '.spec.chart.spec.version = "$RELEASE_VERSION" | .spec.chart.spec.version style="double"' flux_river_configs/servicex-int-uproot/values.yaml &&
45-
yq -i '.spec.chart.spec.version = "$RELEASE_VERSION" | .spec.chart.spec.version style="double"' flux_river_configs/servicex-int-xaod/values.yaml &&
46-
yq -i '.appVersion = "$RELEASE_VERSION" | .appVersion style="double" | .version = "$RELEASE_VERSION" | .version style="double"' helm/servicex/Chart.yaml &&
47-
yq -i '.app.tag = "$RELEASE_VERSION" | .app.tag style="double" |
48-
.didfinder.rucio.tag = "$RELEASE_VERSION" | .didfinder.rucio.tag style="double" |
49-
.didFinder.CERNOpendata.tag = "$RELEASE_VERSION" | .didFinder.CERNOpendata.tag style="double" |
50-
.transformer.defaultTransformerTag = "$RELEASE_VERSION" | .transformer.defaultTransformerTag style="double" |
51-
.x509secrets.tag = "$RELEASE_VERSION" | .x509secrets.tag style="double" |
52-
.codeGen.tag = "$RELEASE_VERSION" | .codeGen.tag style="double" ' helm/servicex/values.yaml
44+
yq -i '.spec.chart.spec.version = "'$RELEASE_VERSION'" | .spec.chart.spec.version style="double" ' flux_river_configs/servicex-int-uproot/values.yaml &&
45+
yq -i '.spec.chart.spec.version = "'$RELEASE_VERSION'" | .spec.chart.spec.version style="double" ' flux_river_configs/servicex-int-xaod/values.yaml &&
46+
yq -i '.appVersion = "'$RELEASE_VERSION'" | .appVersion style="double" | .version = "'$RELEASE_VERSION'"| .version style="double" ' helm/servicex/Chart.yaml &&
47+
yq -i '.app.tag = "'$RELEASE_VERSION'" | .app.tag style="double" |
48+
.didfinder.rucio.tag = "'$RELEASE_VERSION'" | .didfinder.rucio.tag style="double" |
49+
.didFinder.CERNOpendata.tag = "'$RELEASE_VERSION'" | .didFinder.CERNOpendata.tag style="double" |
50+
.transformer.defaultTransformerTag = "'$RELEASE_VERSION'" | .transformer.defaultTransformerTag style="double" |
51+
.x509secrets.tag = "'$RELEASE_VERSION'" | .x509secrets.tag style="double" |
52+
.codeGen.tag = "'$RELEASE_VERSION'" | .codeGen.tag style="double" ' helm/servicex/values.yaml
5353
- name: Create helm package
54-
working-directory: ./ssl-helm-charts
54+
working-directory: ./helm
5555
run: |
56-
pwd
57-
cat servicex/Chart.yaml
58-
cat servicex/values.yaml
5956
helm dependency update servicex
6057
helm package servicex
61-
helm repo index release-package --url https://ssl-hep.github.io/ssl-helm-charts/
58+
mv servicex-$RELEASE_VERSION.tgz ../ssl-helm-charts
59+
helm repo index ../ssl-helm-charts --url https://ssl-hep.github.io/ssl-helm-charts/
6260
- name: Pushes to ssl-helm-packages repository
6361
uses: cpina/github-action-push-to-another-repository@main
6462
env:
6563
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
6664
with:
6765
source-directory: 'ssl-helm-charts'
68-
destination-github-username: 'ssl-hep'
66+
destination-github-username: 'prajwalkkumar'
6967
destination-repository-name: 'ssl-helm-charts'
70-
target-branch: 'gh-pages'
68+
target-branch: 'master'
7169
- name: Pushes to flux-river-configs repository
7270
uses: cpina/github-action-push-to-another-repository@main
7371
env:
7472
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
7573
with:
7674
source-directory: 'flux_river_configs'
77-
destination-github-username: 'ssl-hep'
75+
destination-github-username: 'prajwalkkumar'
7876
destination-repository-name: 'flux_river_configs'
7977
target-branch: 'main'
8078
- name: Create Release

0 commit comments

Comments
 (0)