mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
fix(ci): prevent spaces from being removed when helm chart is updated (#2078)
- `yq` command removes the extra spaces before an end line comment so this will cause `helm lint` failure - by this change, the deleted spaces will be ignored and it will be kept only the new value of `.image.tag` Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
This commit is contained in:
parent
6222dae1f0
commit
02a8ed7854
1 changed files with 7 additions and 1 deletions
8
.github/workflows/publish.yaml
vendored
8
.github/workflows/publish.yaml
vendored
|
@ -253,7 +253,13 @@ jobs:
|
|||
- name: Update image tag
|
||||
uses: mikefarah/yq@master
|
||||
with:
|
||||
cmd: yq -i '.image.tag = "${{ github.event.release.tag_name }}"' 'helm-charts/charts/zot/values.yaml'
|
||||
cmd: |
|
||||
yq e '.image.tag = "${{ github.event.release.tag_name }}"' 'helm-charts/charts/zot/values.yaml' > values-updated.yaml
|
||||
- name: Patch values.yaml file
|
||||
run: |
|
||||
diff -b 'helm-charts/charts/zot/values.yaml' values-updated.yaml > values.diff || true
|
||||
patch 'helm-charts/charts/zot/values.yaml' < values.diff
|
||||
rm values-updated.yaml values.diff
|
||||
- name: Update version
|
||||
run: |
|
||||
sudo apt-get install pip
|
||||
|
|
Loading…
Reference in a new issue