File tree Expand file tree Collapse file tree 3 files changed +37
-14
lines changed
Expand file tree Collapse file tree 3 files changed +37
-14
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Helm Chart
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Set up Helm
16+ uses : azure/setup-helm@v1
17+
18+ - name : Package Chart
19+ run : |
20+ helm package drupal-chart
21+ helm package static-chart
22+ helm package mysql-backup
23+ helm repo index . --url https://davyin-co.github.io/k8s-helm-charts/
24+
25+ - name : Publish to GitHub Pages
26+ run : |
27+ git config user.name "GitHub Actions"
28+ git config user.email "actions@github.com"
29+ git checkout gh-pages
30+ cp -f *.tgz index.html .
31+ git add .
32+ git commit -m "Update charts"
33+ git push origin gh-pages
34+
Original file line number Diff line number Diff line change 11apiVersion : v2
22annotations :
33 category : CMS
4- version : " 1.17 "
4+ version : " 1.18 "
55appVersion : " 1.0"
66dependencies :
77 - name : common
Original file line number Diff line number Diff line change 3333 {{- toYaml .Values.securityContext | nindent 12 }}
3434 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3535 imagePullPolicy : {{ include "image.pull_policy" . | quote }}
36- resources :
37- requests :
38- memory : " 200Mi"
39- cpu : " 15m"
40- limits :
41- memory : " 1500Mi"
42- cpu : " 2000m"
4336 ports :
4437 - name : http
4538 containerPort : 80
5245 - " cat /var/www/html/${DRUPAL_WEB_ROOT}/index.php"
5346 initialDelaySeconds : 5
5447 periodSeconds : 10
55- readinessProbe :
56- httpGet :
57- path : /user/login
58- port : http
59- timeoutSeconds : 10
60-
6148 resources :
6249 {{- toYaml .Values.resources | nindent 12 }}
6350 volumeMounts :
10390 value : {{ include "drupal.databasePort" . | quote }}
10491 - name : DB_USERNAME
10592 value : {{ include "drupal.databaseUser" . | quote }}
93+ - name : DRUPAL_FILES_PERM_FIXED
94+ value : " false"
10695 - name : DB_PASSWORD
10796 valueFrom :
10897 secretKeyRef :
You can’t perform that action at this time.
0 commit comments