From 35ba1f1a5a57531d518f924a30d02686b12f29f1 Mon Sep 17 00:00:00 2001 From: lucasdpt Date: Sat, 11 Apr 2026 17:29:39 +0200 Subject: [PATCH] fix: deploy --- .gitea/workflows/deploy.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 5b19118..a2fda26 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -65,13 +65,14 @@ jobs: token: ${{ secrets.TOKEN }} github-server-url: ${{ inputs.server-url }} - - name: Update Helm chart version - if: ${{ inputs.update-helm == 'true' }} - run: yq e '${{ inputs.helm-path }} = "${{ inputs.helm-version }}"' -i "${{ inputs.file-path }}" - - - name: Update image tag - if: ${{ inputs.update-image == 'true' }} - run: yq e '${{ inputs.image-path }} = "${{ inputs.image-version }}"' -i "${{ inputs.file-path }}" + - name: Update values + run: | + if [ "${{ inputs.update-helm }}" = "true" ]; then + yq e '${{ inputs.helm-path }} = "${{ inputs.helm-version }}"' -i "${{ inputs.file-path }}" + fi + if [ "${{ inputs.update-image }}" = "true" ]; then + yq e '${{ inputs.image-path }} = "${{ inputs.image-version }}"' -i "${{ inputs.file-path }}" + fi - name: Commit and push changes run: |