File tree Expand file tree Collapse file tree
charts/code-server-operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 ghcr.io/walnuts1018/code-server-operator:latest
5252 ghcr.io/walnuts1018/code-server-operator:${{ github.event.release.tag_name }}
5353
54+ chart-release :
55+ runs-on : ubuntu-latest
56+ needs : ImageBuild
57+ if : contains(needs.ImageBuild.result, 'success')
58+ steps :
59+ - name : Checkout
60+ uses : actions/checkout@v4
61+ with :
62+ fetch-depth : 0
63+
64+ - name : Set chart version
65+ run : |
66+ sed --in-place "s/version-placeholder/${{ github.event.release.tag_name }}/g" charts/code-server-operator/Chart.yaml
67+ sed --in-place "s/version-placeholder/${{ github.event.release.tag_name }}/g" charts/code-server-operator/Chart.yaml
68+ sed --in-place "s/version-placeholder/${{ github.event.release.tag_name }}/g" charts/code-server-operator/values.yaml
69+
70+ - name : Create release notes
71+ run : |
72+ # Helm Chart のリリースノートには、本体のリリースへのリンクを追加する
73+ tag_version=${GITHUB_REF##*/}
74+ cat <<EOF > ./charts/code-server-operator/RELEASE.md
75+ Helm chart for Website Operator [$tag_version](https://github.com/walnuts1018/code-server-operator/releases/tag/$tag_version)
76+
77+ EOF
78+
79+ - name : Configure Git
80+ run : |
81+ git config user.name "github-actions[bot]"
82+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
83+
84+ - name : Install Helm
85+ uses : azure/setup-helm@v3
86+
87+ - name : Run chart-releaser
88+ uses : helm/chart-releaser-action@v1.5.0
89+ with :
90+ config : cr.yaml
91+ env :
92+ CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
93+
5494 SucceessNotification :
5595 if : ${{ success() }}
5696 name : Send Success Message
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ type: application
1313# This is the chart version. This version number should be incremented each time you make changes
1414# to the chart and its templates, including the app version.
1515# Versions are expected to follow Semantic Versioning (https://semver.org/)
16- version : 0.1.0
16+ version : version-placeholder
1717# This is the version number of the application being deployed. This version number should be
1818# incremented each time you make changes to the application. Versions are not expected to
1919# follow Semantic Versioning. They should reflect the version the application is using.
2020# It is recommended to use it with quotes.
21- appVersion : " 0.1.0 "
21+ appVersion : " version-placeholder "
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ controllerManager:
3232 - ALL
3333 image :
3434 repository : ghcr.io/walnuts1018/code-server-operator
35- tag : 0.1.3
35+ tag : version-placeholder
3636 resources :
3737 limits :
3838 cpu : 500m
@@ -57,3 +57,4 @@ webhookService:
5757 protocol : TCP
5858 targetPort : 9443
5959 type : ClusterIP
60+
Original file line number Diff line number Diff line change 1+ owner : walnuts1018
2+ git-repo : code-server-operator
3+ release-name-template : " {{ .Name }}-chart-{{ .Version }}"
4+ # Helm Chartのリリースがlatestにならないようにしておく
5+ make-release-latest : false
6+ # リリースノートのファイルはGitHub Actionsで生成する
7+ release-notes-file : RELEASE.md
You can’t perform that action at this time.
0 commit comments