Skip to content

Commit 8833683

Browse files
committed
relase osartifact helm chart
1 parent 80fb023 commit 8833683

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/cd.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- uses: actions/setup-go@v5
9393
with:
9494
go-version: "1.23.3"
95-
- name: Push Chart
95+
- name: Push Osbuilder Chart
9696
uses: pluralsh/[email protected]
9797
with:
9898
path: ./charts/osbuilder
@@ -110,6 +110,24 @@ jobs:
110110
run: |
111111
cd charts/osbuilder
112112
helm dependency update
113+
- name: Push Osartifact Chart
114+
uses: pluralsh/[email protected]
115+
with:
116+
path: ./charts/osartifact
117+
release: ${{github.ref_name}}
118+
- name: Read Chart Version
119+
id: os_chart_version
120+
uses: mikefarah/yq@master
121+
with:
122+
cmd: yq ".version" charts/osartifact/Chart.yaml
123+
- name: Update Chart Version
124+
uses: mikefarah/yq@master
125+
with:
126+
cmd: yq -i '.dependencies[] |= select(.name == "controller").version="${{ steps.os_chart_version.outputs.result }}"' charts/osbuilder/Chart.yaml
127+
- name: Helm Dependencies
128+
run: |
129+
cd charts/osartifact
130+
helm dependency update
113131
- name: Create Pull Request
114132
uses: peter-evans/create-pull-request@v5
115133
with:

0 commit comments

Comments
 (0)