Skip to content

Commit

Permalink
chore: fix sed
Browse files Browse the repository at this point in the history
  • Loading branch information
amber committed Oct 23, 2024
1 parent 0798d83 commit 5ae007f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gitops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
run: |
chart_dir="helm/nshm"
new_image_tag=${{ github.sha }}
sed -i -E "s|(repository: z1yoon/nshm-${{ matrix.service }}[[:space:]]+tag: )[^\"]*|\1$new_image_tag|g" "$chart_dir/values.yaml"
sed -i "/z1yoon\/nshm-${{ matrix.service }}/{n;s/tag: .*/tag: $new_image_tag/;}" values.yaml
cat $chart_dir/values.yaml
- name: Commit the changes
Expand Down

0 comments on commit 5ae007f

Please sign in to comment.