File tree 3 files changed +55
-10
lines changed
3 files changed +55
-10
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ jobs:
30
30
31
31
- name : Install Helm
32
32
uses : azure/setup-helm@v4
33
- env :
34
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
35
33
36
34
- name : add helm repos
37
35
run : |
38
36
helm repo add bitnami https://charts.bitnami.com/bitnami
39
37
helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm
38
+ helm repo update
40
39
41
40
- name : Run chart-releaser
42
-
43
- env :
44
- CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
45
- with :
46
- charts_dir : ../
41
+ run : |
42
+ wget -O /tmp/chart-releaser_1.6.1_linux_amd64.tar.gz https://github.com/helm/chart-releaser/releases/download/v1.6.1/chart-releaser_1.6.1_linux_amd64.tar.gz
43
+ tar -zxvf /tmp/chart-releaser_1.6.1_linux_amd64.tar.gz
44
+ /tmp/cr package .
45
+ /tmp/cr upload --owner ${{ github.repository_owner }} --git-repo ${{ github.repository }} --packages-with-index --token ${{ secrets.GITHUB_TOKEN }} --push --skip-existing
46
+ /tmp/cr index --owner ${{ github.repository_owner }} --git-repo ${{ github.repository }} --packages-with-index --index-path . --token ${{ secrets.GITHUB_TOKEN }} --push
Original file line number Diff line number Diff line change
1
+ name : " Update README on gh-pages"
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ paths :
7
+ - ' README.md'
8
+
9
+ permissions :
10
+ contents : write
11
+ pages : write
12
+
13
+ jobs :
14
+ update-readme :
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout the main branch
19
+ uses : actions/checkout@v3
20
+ with :
21
+ ref : ' main'
22
+
23
+ - name : Copy README.md to a temporary directory
24
+ run : |
25
+ mkdir tmp
26
+ cp README.md /tmp/README.md
27
+
28
+ - name : Checkout gh-pages branch
29
+ uses : actions/checkout@v3
30
+ with :
31
+ ref : ' gh-pages'
32
+ path : ' gh-pages'
33
+
34
+ - name : Replace README.md on gh-pages
35
+ run : |
36
+ cp /tmp/README.md gh-pages/README.md
37
+
38
+ - name : Commit and push changes
39
+ working-directory : ./gh-pages
40
+ run : |
41
+ git config user.name github-actions
42
+ git config user.email [email protected]
43
+ git add README.md
44
+ git commit -m "Update README.md"
45
+ git push
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ helm uninstall release-name --namespace ctfd
47
47
``` yaml
48
48
ctfd :
49
49
image :
50
- tag : " 3.7.3 "
50
+ tag : " latest "
51
51
autoscaling :
52
52
enabled : true
53
53
minReplicas : 2
@@ -69,7 +69,7 @@ seaweedfs:
69
69
` ` ` yaml
70
70
ctfd :
71
71
image :
72
- tag : " 3.7.3 "
72
+ tag : " latest "
73
73
autoscaling :
74
74
enabled : true
75
75
minReplicas : 2
@@ -103,7 +103,7 @@ seaweedfs:
103
103
` ` ` yaml
104
104
ctfd :
105
105
image :
106
- tag : " 3.7.3 "
106
+ tag : " latest "
107
107
replicas : 2
108
108
autoscaling :
109
109
enabled : false
You can’t perform that action at this time.
0 commit comments