File tree 2 files changed +40
-1
lines changed
2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy helm chart to prod
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+
17
+ id : install
18
+
19
+ - name : Package chart
20
+ run : |
21
+ cd ./charts
22
+ helm package ./bunkerweb/
23
+
24
+ - name : Upload files via SSH
25
+ env :
26
+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
27
+ SSH_HOST : ${{ secrets.SSH_HOST }}
28
+ SSH_USERNAME : ${{ secrets.SSH_USERNAME }}
29
+ run : |
30
+ mkdir -p ~/.ssh
31
+ echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
32
+ chmod 600 ~/.ssh/id_ed25519
33
+ ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
34
+ cd charts
35
+ scp *.tgz $SSH_USERNAME@$SSH_HOST:/var/www/html/charts
36
+ scp $SSH_USERNAME@$SSH_HOST:/var/www/html/charts/* .
37
+ helm repo index . --url https://repo.bunkerweb.io/charts
38
+ scp *.tgz $SSH_USERNAME@$SSH_HOST:/var/www/html/charts
39
+ scp index.yaml $SSH_USERNAME@$SSH_HOST:/var/www/html/charts
Original file line number Diff line number Diff line change @@ -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 : 0.0.3
18
+ version : 0.0.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