File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploys
2
2
3
- on :
4
- push :
5
- branches :
6
- - trunk
3
+ on : workflow_dispatch
7
4
8
5
jobs :
9
6
deploy :
@@ -100,11 +97,10 @@ jobs:
100
97
- name : Make changes for helm chart
101
98
run : |
102
99
IMAGE_VERSION=${{ env.GRID_VERSION }}-${{ env.BUILD_DATE }}
103
- CURRENT_CHART_VERSION=$(sed "5q;d" charts/selenium-grid/CHANGELOG.md | tr ":" "\n" | awk 'FNR == 3{print}' | xargs)
104
- CHART_VERSION=$(echo ${CURRENT_CHART_VERSION} | awk -F. -v OFS=. '{$NF += 1 ; print}')
105
100
106
101
cd charts/selenium-grid
107
-
102
+ CURRENT_CHART_VERSION=$(yq -r .version Chart.yaml)
103
+ CHART_VERSION=$(echo ${CURRENT_CHART_VERSION} | awk -F. -v OFS=. '{$NF += 1 ; print}')
108
104
awk -v CHART_VERSION="$CHART_VERSION" -v IMAGE_VERSION="$IMAGE_VERSION" \
109
105
'NR==5{print "## :heavy_check_mark: " CHART_VERSION "\n\n### Changed\n- Update image tag to " IMAGE_VERSION "\n"}1' CHANGELOG.md > awk_out && mv awk_out CHANGELOG.md
110
106
awk -v IMAGE_VERSION="$IMAGE_VERSION" '{gsub(/appVersion:.*/,"appVersion: " IMAGE_VERSION);}1' Chart.yaml > awk_out && mv awk_out Chart.yaml
Original file line number Diff line number Diff line change
1
+ ---
1
2
apiVersion : v2
2
3
name : selenium-grid
3
4
description : A Helm chart for creating a Selenium Grid Server in Kubernetes
You can’t perform that action at this time.
0 commit comments