1 parent 0e53600 commit 1f6ad83Copy full SHA for 1f6ad83
1 file changed
.github/workflows/ci-pipeline.yaml
@@ -70,7 +70,7 @@ jobs:
70
update-helm:
71
needs: build
72
runs-on: self-hosted
73
-
+
74
steps:
75
- name: Checkout Helm Charts
76
uses: actions/checkout@v3
@@ -83,15 +83,11 @@ jobs:
83
- name: Ensure main branch is up to date
84
run: git pull origin main
85
86
- - name: Install yq
87
- run: |
88
- sudo apt-get update -y
89
- sudo apt-get install -y yq
90
91
- name: Update image tag
92
run: |
93
echo "Updating image tag to $IMAGE_TAG..."
94
- yq w -i ./helm/application/values.yaml 'app.image.tag' "$IMAGE_TAG"
+ # Using sed - works on any system
+ sed -i 's/^\([[:space:]]*tag:[[:space:]]*\).*/\1'"$IMAGE_TAG"'/' ./helm/application/values.yaml
95
echo "Updated Helm values.yaml:"
96
cat ./helm/application/values.yaml
97
env:
0 commit comments