Skip to content

Commit ce3bbdf

Browse files
author
flowcore-platform
committed
fix: Update HelmChart image version handling in CI workflow
- Modified the GitHub Actions workflow to correctly update the image version in the HelmChart configuration file using environment variables. - Replaced the previous command with a more robust yq expression for better clarity and functionality.
1 parent 1d6d19f commit ce3bbdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ jobs:
7777
with:
7878
cmd: yq --version
7979
- name: Update Image Version in the related HelmChart production configuration file
80+
env:
81+
TAG_PATH: ${{ needs.extract_info.outputs.tagPath }}
82+
VERSION: ${{ needs.extract_info.outputs.version }}
8083
run: |
81-
yq -i '.${{ needs.extract_info.outputs.tagPath }} = "${{ needs.extract_info.outputs.version }}"' manifest/configuration/azure-eu.yaml
84+
yq eval ".${TAG_PATH} = \"${VERSION}\"" -i manifest/configuration/azure-eu.yaml
8285
- name: Commit the changes
8386
run: |
8487
cd manifest

0 commit comments

Comments
 (0)