Skip to content

Commit 10b22be

Browse files
committed
github pages auto
1 parent 56d645c commit 10b22be

File tree

3 files changed

+37
-14
lines changed

3 files changed

+37
-14
lines changed

.github/workflows/publish.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

drupal-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
annotations:
33
category: CMS
4-
version: "1.17"
4+
version: "1.18"
55
appVersion: "1.0"
66
dependencies:
77
- name: common

drupal-chart/templates/deployment.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ spec:
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
@@ -52,12 +45,6 @@ spec:
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:
@@ -103,6 +90,8 @@ spec:
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:

0 commit comments

Comments
 (0)