Skip to content

Commit 8934ce6

Browse files
updated ci.yaml
1 parent 9099fd9 commit 8934ce6

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,27 @@ jobs:
6868
context: .
6969
file: ./Dockerfile
7070
push: true
71-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-web-app:${{github.run_id}}
71+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-web-app:${{github.run_id}}
72+
73+
update-newtag-in-helm-chart:
74+
runs-on: ubuntu-latest
75+
76+
needs: push
77+
78+
steps:
79+
- name: Checkout repository
80+
uses: actions/checkout@v4
81+
with:
82+
token: ${{ secrets.TOKEN }}
83+
84+
- name: Update tag in Helm chart
85+
run: |
86+
sed -i 's/tag: .*/tag: "${{github.run_id}}"/' helm/go-web-app-chart/values.yaml
87+
88+
- name: Commit and push changes
89+
run: |
90+
git config --global user.email "yadavsubrat007@gmail.com"
91+
git config --global user.name "Yadav-SubratKumar"
92+
git add helm/go-webapp-devops/values.yaml
93+
git commit -m "Update tag in Helm chart"
94+
git push

0 commit comments

Comments
 (0)