Compare commits

...

37 Commits

Author SHA1 Message Date
816ff471cb Fix unquoted certificates error
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-27 08:32:25 +00:00
826884baff Fixed default vaule
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-27 08:29:08 +00:00
0b1258bebe Update version to 1.1
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 3s
2024-02-27 08:27:32 +00:00
a1acf02233 Add secret fields to specification
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 5s
2024-02-26 16:01:05 +00:00
bae6a260f0 Merge branch 'dev-newchart'
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-26 15:51:54 +00:00
047c1c8758 Dev-newchart
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-26 15:50:44 +00:00
9d56d1d0b9 Fixed cert
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 6s
2024-02-23 19:26:34 +01:00
b036ce7710 Fixed
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 7s
2024-02-23 19:19:59 +01:00
d478cb6ec3 Update .gitea/workflows/upload-helm.yml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-23 18:17:57 +00:00
3cdaaf07a4 Update Chart/templates/deployment.yaml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 3s
2024-02-23 18:17:45 +00:00
4876cdc866 Update Chart/templates/deployment.yaml 2024-02-23 18:16:32 +00:00
847eca2458 Update .gitea/workflows/upload-helm.yml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 6s
2024-02-22 19:35:40 +00:00
a2a9d05ee0 Update Chart/templates/job.yaml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-22 19:35:03 +00:00
0c2fbf3a79 Update .gitea/workflows/upload-helm.yml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 9s
2024-02-22 19:33:26 +00:00
90e6fced80 Update Chart/templates/deployment.yaml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-22 19:32:00 +00:00
c60bcd8c9f Update .gitea/workflows/upload-helm.yml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-02-22 15:15:35 +00:00
6a66bc9829 Update Chart/templates/deployment.yaml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 3s
2024-02-22 15:15:18 +00:00
c2bdc364c0 Update Chart/templates/deployment.yaml 2024-02-22 15:12:52 +00:00
b8aef496f4 Fixed
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-01-24 22:16:02 +00:00
c3c8b8eebe Updated CI
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 13s
2024-01-24 22:12:50 +00:00
b6cd28d1e9 Fix pipeline
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-01-24 22:09:39 +00:00
8389dbcee7 Update .gitea/workflows/upload-helm.yml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 4s
2024-01-24 22:02:12 +00:00
7540309c71 Update .gitea/workflows/upload-helm.yml
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 3s
2024-01-24 22:00:20 +00:00
596c4102ed Changed to tag
All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
2024-01-06 12:01:46 +01:00
d862f7c132 Added helm chart upload 2024-01-06 11:59:34 +01:00
7cbab35102 Merge branch 'dev-newchart' 2024-01-06 11:50:35 +01:00
4d44f56679 Updated 2024-01-06 11:03:31 +01:00
721dc409ad Update .gitlab-ci.yml 2023-10-30 23:47:38 +01:00
0ada9155eb Parameterize webp conversion 2023-10-30 23:44:39 +01:00
5129be3fc8 Swap imagepullpolicy to always 2023-10-05 18:27:07 +02:00
f70afe5523 Restore webp conversion for init running as job 2023-09-23 18:26:16 +00:00
d6292ca4b0 Fixed labels 2023-09-23 13:41:10 +00:00
c514a76b5e Added restart policy to job 2023-09-23 13:28:50 +00:00
6287a199b8 Added topology key 2023-09-23 13:26:34 +00:00
d884c6cb2b Fixed selector 2023-09-23 13:25:04 +00:00
b7e034847e Fixed topology selector 2023-09-23 13:23:44 +00:00
8b85ba35fa Disabled job template 2023-09-05 17:28:56 +02:00
8 changed files with 108 additions and 45 deletions

View File

@@ -0,0 +1,23 @@
name: Upload Helm Chart
run-name: Uploading helm chart
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
env:
HELM_CHART_VERSION: "1.1.2"
steps:
- uses: actions/checkout@v2
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: 'v3.0.0'
- run: 'sed -i "s/version:.*/version: \"${HELM_CHART_VERSION}\"/" ./Chart/Chart.yaml'
- run: helm package ./Chart
- name: Upload Helm Chart
run: |
curl -ki -X POST \
--user ${{ secrets.HELM_PKG_UPLOAD_USER }}:${{ secrets.HELM_PKG_UPLOAD_PASS }} \
--upload-file "wordyne-${HELM_CHART_VERSION}.tgz" \
https://helm.cloudyne.io/api/charts

View File

@@ -1,5 +1,5 @@
variables:
HELM_CHART_VERSION: "1.0.16"
HELM_CHART_VERSION: "1.0.24"
stages:
- deploy
@@ -9,9 +9,7 @@ default:
name: cloudyne/kubectl-helm:latest
entrypoint: [""]
tags:
- build01
- helm
- chartbuild
- shell
deploy:
stage: deploy

View File

@@ -2,5 +2,5 @@ apiVersion: v2
name: wordyne
description: Helm chart for deploying pre-built website containers to kubernetes clusters
type: application
version: "99.6.29"
version: "1.0.27"
appVersion: "6.2.2"

View File

@@ -48,25 +48,25 @@ cloudyne.systems/site: {{ .Values.site.domain | quote }}
{{- end }}
{{- define "..selector-labels" -}}
cloudyne.systems/customer: {{ .Values.customer.legalName | replace " " "-" | replace "," "" | trunc 63 | trimSuffix "-" | quote }}
cloudyne.systems/customer-legal-id: '{{ .Values.customer.legalId }}'
cloudyne.systems/site: {{ .Values.site.domain | quote }}
cloudyne.systems/component: site
{{- end }}
{{- define "..affinity-labels" -}}
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: cloudyne.systems/customer
operator: In
values:
- {{ .Values.customer.legalName | replace " " "-" | replace "," "" | trunc 63 | trimSuffix "-" | quote }}
- key: cloudyne.systems/site
operator: In
values:
- cloudyne.systems/site: {{ .Values.site.domain | quote }}
- key: cloudyne.systems/component
operator: In
values:
- "site"
- key: cloudyne.systems/customer
operator: In
values:
- {{ .Values.customer.legalName | replace " " "-" | replace "," "" | trunc 63 | trimSuffix "-" | quote }}
- key: cloudyne.systems/site
operator: In
values:
- {{ .Values.site.domain | quote }}
- key: cloudyne.systems/component
operator: In
values:
- "site"
topologyKey: kubernetes.io/hostname
{{- end }}

View File

@@ -69,7 +69,16 @@ data:
"overwriteDatabase": {{ .Values.init.db.overwrite | default false }},
"generateSalts": true,
"activateTheme": "{{ .Values.init.wp.theme | default .Values.site.name }}",
{{- if .Values.init.asJob }}
"convertUploadsToWebp": {{ .Values.init.content.webpConverter | default true }},
{{- else }}
"convertUploadsToWebp": {{ .Values.init.content.webpConverter | default false }},
{{- end }}
{{- if and .Values.storage.cloud.active .Values.storage.local.active }}
"backupToCloud": true,
{{- else }}
"backupToCloud": false,
{{- end }}
"convertMissingOnly": true
}

View File

@@ -4,7 +4,6 @@ metadata:
name: {{ include "..fullname" . }}
labels:
{{- include "..labels" . | nindent 4 }}
cloudyne.systems/component: site
spec:
{{- if .Values.site.resources }}
replicas: {{ .Values.site.resources.replicas | default 1 }}
@@ -12,10 +11,12 @@ spec:
replicas: 1
{{- end }}
selector:
matchLabels: {{- include "..selector-labels" . | nindent 6 }}
matchLabels:
{{- include "..selector-labels" . | nindent 6 }}
template:
metadata:
labels: {{- include "..selector-labels" . | nindent 8 }}
labels:
{{- include "..selector-labels" . | nindent 8 }}
spec:
securityContext:
fsGroup: 101
@@ -98,23 +99,29 @@ spec:
- name: serverconfig
mountPath: /init-go/config.json
subPath: init.json
{{- if .Values.storage.cloud.active }}
- name: cloud
mountPath: "/mnt/cloud"
{{- end }}
{{- if .Values.storage.local.active }}
{{- range .Values.storage.folders }}
- name: local
mountPath: "/app/web/app/{{ . }}"
subPath: "{{ . }}"
{{- end }}
{{- if .Values.storage.cloud.active }}
- name: cloud
mountPath: "/mnt/cloud"
{{- end }}
{{- else }}
{{- if .Values.storage.cloud.active }}
{{- range .Values.storage.folders }}
{{- if or ( eq . "certificates" ) ( eq . "secrets" ) }}
- name: local
mountPath: "/app/{{ . }}"
subPath: "{{ . }}"
{{- else }}
- name: cloud
mountPath: "/app/web/app/{{ . }}"
subPath: "{{ . }}"
{{- end }}
{{- end }}
{{- end }}
{{- end }}
@@ -139,27 +146,39 @@ spec:
securityContext:
runAsUser: 101
image: "{{ .Values.site.image }}"
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
volumeMounts:
- name: serverconfig
mountPath: /docker-entrypoint.d/unit.json
subPath: unit.json
{{- if .Values.storage.local.active }}
{{- range .Values.storage.folders }}
- name: local
mountPath: "/app/web/app/{{ . }}"
subPath: "{{ . }}"
{{- end }}
{{- if .Values.storage.cloud.active }}
- name: cloud
mountPath: "/mnt/cloud"
{{- end }}
{{- if .Values.storage.local.active }}
{{- range .Values.storage.folders }}
{{- if or ( eq . "certificates" ) ( eq . "secrets" ) }}
- name: local
mountPath: "/app/{{ . }}"
subPath: "{{ . }}"
{{- else }}
- name: local
mountPath: "/app/web/app/{{ . }}"
subPath: "{{ . }}"
{{- end }}
{{- end }}
{{- else }}
{{- if .Values.storage.cloud.active }}
{{- range .Values.storage.folders }}
{{- if or ( eq . "certificates" ) ( eq . "secrets" ) }}
- name: cloud
mountPath: "/app/{{ . }}"
subPath: "{{ . }}"
{{- else }}
- name: cloud
mountPath: "/app/web/app/{{ . }}"
subPath: "{{ . }}"
{{- end }}
{{- end }}
{{- end }}
{{- end }}
@@ -180,4 +199,4 @@ spec:
ports:
- containerPort: 8080
name: http
protocol: TCP
protocol: TCP

View File

@@ -1,14 +1,17 @@
#dev-newchart
{{- if .Values.init.asJob }}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "..fullname" . }}-wpc-reg
name: {{ include "..fullname" . }}-initializer
labels:
{{- include "..labels" . | nindent 4 }}
cloudyne.systems/component: site-init
spec:
backoffLimit: 2
template:
spec:
restartPolicy: "OnFailure"
affinity: {{ include "..affinity-labels" . | nindent 8 }}
securityContext:
fsGroup: 101
@@ -86,21 +89,21 @@ spec:
allowPrivilegeEscalation: false
runAsUser: 0
image: "{{ .Values.site.image }}"
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
volumeMounts:
- name: serverconfig
mountPath: /init-go/config.json
subPath: init.json
{{- if .Values.storage.cloud.active }}
- name: cloud
mountPath: "/mnt/cloud"
{{- end }}
{{- if .Values.storage.local.active }}
{{- range .Values.storage.folders }}
- name: local
mountPath: "/app/web/app/{{ . }}"
subPath: "{{ . }}"
{{- end }}
{{- if .Values.storage.cloud.active }}
- name: cloud
mountPath: "/mnt/cloud"
{{- end }}
{{- else }}
{{- if .Values.storage.cloud.active }}
{{- range .Values.storage.folders }}

View File

@@ -81,12 +81,12 @@ secrets:
storage:
kubernetes:
- name: "pull-secret"
type: "secret"
files:
- name: .dockerconfigjson
content: |
{"auths":{"ghcr.io":{"username":"ghcr.io","password":"ghcr.io","auth":"ghcr.io"}}}
# - name: "pull-secret"
# type: "secret"
# files:
# - name: .dockerconfigjson
# content: |
# {"auths":{"ghcr.io":{"username":"ghcr.io","password":"ghcr.io","auth":"ghcr.io"}}}
# - name: "secret01"
# type: "secret"
# files:
@@ -140,6 +140,17 @@ init:
# url: "https://url.to/content.zip"
email:
relay:
enabled: false
relayName: "smtp-relay"
relayHost: "relay.domain.com"
relayPort: 2525
# Generate automatically
# relayUser: "relayuser"
# relayPassword: "relaypassword"
smtpHost: ""
smtpPort: ""
smtpAuth: false