File tree Expand file tree Collapse file tree 4 files changed +39
-25
lines changed Expand file tree Collapse file tree 4 files changed +39
-25
lines changed Original file line number Diff line number Diff line change 31
31
outputs :
32
32
tag_name : ${{ steps.create_release.outputs.tag_name }}
33
33
steps :
34
+
34
35
- uses : googleapis/release-please-action@v4
35
36
id : create_release
36
37
with :
49
50
runs-on : ubuntu-20.04
50
51
environment : production
51
52
if : ${{ needs.release-please.outputs.tag_name != '' }}
52
-
53
53
steps :
54
- - name : Checkout
55
- uses : actions/checkout@v3
56
- with :
57
- fetch-depth : 0
58
-
59
54
- name : Set up Go
60
55
uses : actions/setup-go@v4
61
56
with :
71
66
run : |-
72
67
echo '${{ steps.auth.outputs.access_token }}' | docker login -u oauth2accesstoken --password-stdin https://$GAR_LOCATION-docker.pkg.dev
73
68
69
+ - name : Checkout
70
+ uses : actions/checkout@v3
71
+ with :
72
+ fetch-depth : 0
73
+
74
+ - name : Configure Git
75
+ run : |
76
+ git config user.name "$GITHUB_ACTOR"
77
+ git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
78
+
79
+ - name : Install Helm
80
+ uses : azure/setup-helm@v3
81
+ with :
82
+ version : " v3.13.3"
83
+
84
+ - name : build chart
85
+ env :
86
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87
+ run : |-
88
+ cd shibuya
89
+ make helm_charts
90
+ sh chart_releaser.sh
91
+
74
92
# Build the Docker image
75
93
- name : Build api
76
94
env :
@@ -84,19 +102,6 @@ jobs:
84
102
run : |-
85
103
cd shibuya && make controller_image component=controller
86
104
87
- - name : Configure Git
88
- run : |
89
- git config user.name "$GITHUB_ACTOR"
90
- git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
91
105
92
- - name : Install Helm
93
- uses : azure/setup-helm@v3
94
- with :
95
- version : " v3.13.3"
96
106
97
- - name : Run chart-releaser
98
- uses : helm/chart-releaser-action@v1.5.0
99
- with :
100
- charts_dir : shibuya/install
101
- env :
102
- CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
107
+
Original file line number Diff line number Diff line change @@ -30,5 +30,4 @@ controller_image: controller_build
30
30
31
31
.PHONY : helm_charts
32
32
helm_charts :
33
- helm create shibuya-install
34
- helm package shibuya-install/
33
+ helm package install/shibuya
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ chart_name=$( helm inspect chart install/shibuya | awk -F' : ' ' /^name:/ {print $2}' )
4
+ chart_version=$( helm inspect chart install/shibuya | awk -F' : ' ' /^version:/ {print $2}' )
5
+ chart_output=$chart_name -$chart_version
6
+ if gh release view $chart_output ; then
7
+ echo " Release already exists!"
8
+ else
9
+ gh release create $chart_output --latest=false $chart_output .tgz --notes $chart_output -t $chart_output
10
+ fi
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
- name : shibuya
3
- description : A Helm chart for Kubernetes
2
+ name : shibuya-chart
3
+ description : A Helm chart for deploying Shibuya
4
4
5
5
# A chart can be either an 'application' or a 'library' chart.
6
6
#
@@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : chart- v0.1.0
18
+ version : v0.1.1
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
You can’t perform that action at this time.
0 commit comments